I've got a classic asp app that needs to post XML to a payment engine, and the reference code uses a System.Net.HttpWebRequest object (asp.net). Is there an equivalent in Classic ASP that I could use to post the XML?
Xml – System.Net.HttpWebRequest in classic asp
asp-classicpostrequestxmlxmlhttprequest
Best Answer
Heres a little helper function I use for making HTTP requests in ASP. Its in JScript but you should get the idea at least and some pointers of some nasty gotcha's that we've had to iron out over the years.
If you save that in a file (called httprequest.asp) the you can use it using this code:
One word of warning, if it has an error it will return to you the error message, no way of catching it. It does fine for our needs, if we need a bit more protection then we can create a custom function which can handle the errors a bit better.
Hope that helps.