|
| |
|
|
helensnow
Posts: 232 Joined: 12/18/2003 Status: offline
|
POSTING To remote webite UPDATED!! - 4/20/2009 17:21:43
Hi There is a form on a remote website that accepts form data. Here is the HTML from the form <form target="_blank" action='http://www.XXXZZZ.com/affiliate/upload/leadsupload.asmx/UploadLead' method="POST"> It`s collects from the HTML form and does A SIMPLE FORM POST I am sending data automaticaly from a customer form and I get a SOAP error. SAME DATA being sent to the SAME Target URL just using a different method, one is by the form which works and one is using remote POST which does not work. Any insights, someone said i should use GET not POST to send the data, but I am not sure how to do that,
Function PostTo(XMLinformation, URL)
Dim objXMLHTTP, xml
Dim dataRS
On Error Resume Next
Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")
xmlhttp.Open "POST", url, false
xmlhttp.setRequestHeader "Content-Type", "text/xml"
DataRs = xmlhttp.readyState
xmlhttp.send XMLinformation
If DataRs <> 4 then
xmlhttp.waitForResponse 30
End If
PostTo = xmlhttp.responseText
Set xmlhttp = Nothing
End Function
many thanks for your help Helen
< Message edited by helensnow -- 4/20/2009 17:48:06 >
_____________________________
Love is all, and all that we are is love
|
|
|
|
Joey
Posts: 187 Joined: 5/15/2002 From: Status: offline
|
RE: POSTING To remote webite UPDATED!! - 5/1/2009 18:17:26
Could you post your form code?
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|