[thelist] XMLhttp request -> Post
Chris Marsh
thelist at cjmarsh.com
Wed Jul 5 16:46:09 CDT 2006
Brian
[..]
> This is what I have so far, but nothing seems to happen....
> <%
> Set objXmlHttp = CreateObject("MSXML2.ServerXMLHTTP.3.0")
> objXmlHttp.Open "POST", requestURL, False
> objXMLHttp.Send(strXml)
>
> if (objXmlHttp.Status <> 200) then
> errorHasOccurred = True
> response.write "error"
> Else
> response.write "no error"
> end if
> %>
>
> Where strXml is a string that forms the xml document on the
> fly. 3.0 is installed on the server, so that isn't the issue
> either (other apps use this with no problem)
>
> I'm getting back "no error" so my header is coming back ok.
Instead of response.Write("no error"), try
response.Write(objXMLHttp.responseText). View the source code when you
request your ASP. What do you see?
[..]
--
Regards
Chris Marsh
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.9/382 - Release Date: 04/07/2006
More information about the thelist
mailing list