AspHTTP allows you to GET/POST/HEAD documents using the HTTP protocol.
'GET DATA
| <% |
| Set HttpObj = Server.CreateObject("AspHTTP.Conn") |
| HTTPObj.Url = "http://www.myfinancialpage.com/qrtresults.html" |
| strResult = HTTPObj.GetURL |
| %> |
'The variable named strResult now contains a string representing the document results from a GET of 'http://www.myfinancialpage.com/qrtresults.html.
POSTING DATA
| <% |
| Set HttpObj = Server.CreateObject("AspHTTP.Conn") |
| HTTPObj.Url = "http://www.myfinancialpage.com/scripts/update3.asp" |
| HTTPObj.PostData = "suid=jimb&pwd=macabre&id=32&val=1.5" |
| HTTPObj.RequestMethod = "POST" |
| strResult = HTTPObj.GetURL |
| %> |
'The variable named strResult now contains a string representing the document results from a POST to 'http://www.myfinancialpage.com/scripts/update3.asp.
Article ID: 319, Created On: 4/24/2009, Modified: 4/25/2009