Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

POST data without navigating to page

Guest
Apr 28, 2007 Apr 28, 2007
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
TOPICS
Server side applications
268
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 28, 2007 Apr 28, 2007
LATEST
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





Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines