Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XMLHTTP help please

Status
Not open for further replies.

struth

Programmer
Aug 26, 2001
114
GB
I use the XMLHTTP object very successfully using the code below UNTIL the data in the dynamically created form which 'formData' picks up gets to big. This is because it is transformed into a querystring which can become too long to be read. Is there any way around this. I need the response text to create a new (mirror) file.


' data from a dynamic - user-created form
formData = Request.Form
strURL = "result.asp?"


strURL = strURL & formData
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "POST", strURL, false
objXMLHTTP.setRequestHeader "Content-Type", "application/x- objXMLHTTP.send


Your thoughts would be appreciated.

"Away from the actual ... everything is virtual"
 
I've just found the solution myself it seems...I commented out:

objXMLHTTP.setRequestHeader "Content-Type", "application/x-


and it worked.

"Away from the actual ... everything is virtual"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top