Click to See Complete Forum and Search --> : Msxml2.ServerXMLHTTP.3.0


fjlemos
02-24-2007, 02:04 PM
Hi

this is the code i'm trying to send parameters to to a specific URL
<%
url = "http://myURL.com"
un="myUser"
pw="myPass"
set xmlhttp = CreateObject("Msxml2.ServerXMLHTTP.3.0")
on error resume next
xmlhttp.open "POST", url, False , un, pw
xmlhttp.setRequestHeader "Content-Type", "text/html; charset=utf-8"
xmlhttp.setRequestHeader "Connection", "Keep-Alive"
xmlhttp.send text
Response.write xmlhttp.responseText
set xmlhttp = nothing
%>

the text is a really huge string, with the parameters separated by "&". i got the parmeters from the offline file when trying to post the form contained, so i know for sure what's being sent to the server.

nevertheless the scripts doesn't return nothing :mad:

what might be going wrong:confused: ?

thx

russell
02-24-2007, 06:31 PM
first, comment out this line
on error resume next
getting any errors now?