Component Overview: ASP HTTP

About ASP HTTP

This component was developed by Server Objects: http://www.serverobjects.com/, and it allows you to implement GET, HEAD, and POST request methods into your application. For a complete reference guide for this component please see: http://www.serverobjects.com/comp/asphttp3.htm

Script Examples

 

GET

 

// Create object

Set HttpObj = Server.CreateObject("AspHTTP.Conn")

 
// Set URL to retrieve data from
HTTPObj.Url = http://www.myfinancialpage.com/qrtresults.html

 
// Call method to retrieve data and store into a variable
strResult = HTTPObj.GetURL

 

POST


 
// Create object
Set HttpObj = Server.CreateObject("AspHTTP.Conn")

 
// Set URL to post data to
HTTPObj.Url = http://www.myfinancialpage.com/scripts/update3.asp

 
// Set a query string to post with
HTTPObj.PostData = "suid=jimb&pwd=macabre&id=32&val=1.5"

 
// Post data and store the returned results in a variable
HTTPObj.RequestMethod = "POST"
strResult = HTTPObj.GetURL

Add Feedback