Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capturing a web response

Status
Not open for further replies.

MarkLeT

Programmer
Feb 27, 2004
4
US
I need to parse or capture a response from a web site after POSTing a form to it. Any suggestions?

Thanks
 
Search Google for use of the xmlhttp object. Here's a small sample of what it can do using the GET method, but it can also do POST's.
Code:
<script>
function getWebPageText(url){
  objXml = new ActiveXObject("Microsoft.XMLHTTP");
  objXml.open("GET",url,false);
  objXml.send(null);
  return objXml.responseText;
}

alert(getWebPageText("[URL unfurl="true"]http://www.google.com"));[/URL]
</script>

Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top