Forum Moderators: open
In ColdFusion I use CFHTTP, I need to do it in ASP.
Does anyone know how I can accomplish this?
I have searched the internet, and came up empty. Any help would be appreciated.
Thanks in advance
Here is the syntax of CFHTTP
[livedocs.macromedia.com...]
The example I implemented was from Ben Ellison which makes the browser see the page using either URL ::
tekgems.com/id.cfm?itemnum=3com_dongle002_3668
tekgems.com/id.cfm/itemnum/3com_dongle002_3668
-- start code snippet --
'Create object
Set objXML = CreateObject("MSXML2.ServerXMLHTTP")
'Load the url
'*Note: MSXML can also do POST requests, simply search for 'ServerXMLHTTP documentation' or similar on google/microsoft
objXML.open "GET", "http://www.xxx.com/", False
objXML.send()
page_Source = objXML.responseText
page_Status = objXML.status
' clean up
Set objXML = Nothing
-- end code snippet --