Skip to main content
April 28, 2007
Question

POST data without navigating to page

  • April 28, 2007
  • 1 reply
  • 267 views
Hi,

I need to POST some data collected in a form to an ASP page hosted by another person.

How do I do this without navigating to that ASP page, so I can remain within my own website ?

Thanks for the help,

M
This topic has been closed for replies.

1 reply

Inspiring
April 28, 2007
You could have some code like:

Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
objXML.open "POST", "mysite.com/foo.asp", False
objXML.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objXML.send(Request.Form)
Resp = objXML.responsetext
Set objXML = Nothing

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004