Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

how to POST from server to server

5:38 pm on Mar 4, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 19, 2002
votes: 76

how would i POST from my server to another (remote) server without using a web form with classic asp.


checkout on website with web form to collect name and address, this is posted to my server, where i want to extract the data and insert it to my database before then POST it to the card processor on a remote server where they prefill the name and address fields with the customer data i sent them and they also collect the credit card data etc.

alternatively i trap the data i want and present the user with another page of mine basically with a form button which they have to press to go to the gateway - i'd rather miss this step if possible.

5:52 pm on Mar 5, 2008 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 28, 2002
votes: 0

PostData = "field1=123&field2=345&field3=test+field+value
set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.open "POST", "https://someothersite.com/page.htm?" & PostData & "", false
xml.send ""
strStatus = xml.Status
strRetval = xml.responseText

Be sure to URLEncode the field values in the PostData string:
ie: test field value should show up as test+field+value