Feb 2, 2005 #1 MarkLeT Programmer Joined Feb 27, 2004 Messages 4 Location US I need to parse or capture a response from a web site after POSTing a form to it. Any suggestions? Thanks
I need to parse or capture a response from a web site after POSTing a form to it. Any suggestions? Thanks
Feb 2, 2005 #2 adam0101 Programmer Joined Jun 25, 2002 Messages 1,952 Location US 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 Upvote 0 Downvote
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