Welcome to WebmasterWorld Guest from 54.160.163.163

Forum Moderators: ocean10000

Message Too Old, No Replies

how to POST from server to server

     

topr8

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

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

situation:

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.

duckhunter

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

10+ Year Member



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

 

Featured Threads

Hot Threads This Week

Hot Threads This Month