ASP - POST from XMLHTTP - Asked By Chandra Ankalu on 18-Jul-14 12:50 PM

I am trying to post a variale using xmlhttp to an asp page.
but on the server side, when i say
request.form("strXML"), I am getting nothing..
on the client my code is
Dim xml
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
' Notice the two changes in the next two lines:
xml.Open "POST", "http://www.imdb.com/Find", False
xml.Send "strXML=<test><name>xyz</name></test>"
Response.Write xml.responseText
Set xml = Nothing
my server code is
strXML = request.form("strxml")
doc = Server.CreateObject("Microsoft.XMLDOM");
doc.load(strXML);
Response.ContentType = "text/xml";
doc.save(Response);
can somebody help me?

Here's an example... - Asked By Robbe Morris on 09-May-01 04:47 PM

http://www.eggheadcafe.com/articles/20010209.asp

Has both sides.

POST FROM XMLHTTP - Asked By Peter Bromberg on 09-May-01 05:25 PM

you aren't posting to the Request.FORM object at all.
if you want to post to the Form collection on the server, you need to :
xml.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xml.send datatosend 
' where datatosend = "name=xyz&address=123 this street"

Then on the server you would pick this up as:
name=Request.form("Name")
address=Request.form("Address")
Response.ContentType="text/xml"
Response.write "<ReturnValues><name>" & name ..etc.etc.etc

iF you want to load the stuff your sending as xml, then forget about the form object. Do what you're doing now 
and instead, on the server, do:
doc.Load(Request)

I have the same problem - Asked By johnny chen on 18-Jul-14 12:51 PM

I also have the same problem when I tried to query the XML files within my asp page through HTTP. There's an error accured "msxml3.dll error '80070005'
Access is denied."
Do you know what's going on?
Check NTFS permissions... - Asked By Robbe Morris on 26-May-01 08:04 AM
...on that DLL.  Your IUSR_??? account for anonymous internet access may not have permissions on msxml3.dll