D
DavidT
I need to build a valid XML file using ASP form elements, pass that "file"
to a https url and then retrieve the ID that is returned. I can build the
XML into a string no problem but how then heck do I go about
posting/retrieving?
I've come across something like this in my search:
Dim oXML, sURL
Dim sContents
sURL = "https://domain/page.asp"
Set oXML = CreateObject("MSXML2.ServerXMLHTTP")
oXML.Open "POST", sURL, False
oXML.SetRequestHeader "Content-Type","application/x-www-form-urlencoded"
oXML.Send "txtUsername=Anthony&txtPassword=abcdefghi"
GetPostResponse = oXML.responseText
Set oXML = Nothing
But where would my XML string to post fit into this?
Driving me nutters. Any help is appreciated.
Thanks
David
to a https url and then retrieve the ID that is returned. I can build the
XML into a string no problem but how then heck do I go about
posting/retrieving?
I've come across something like this in my search:
Dim oXML, sURL
Dim sContents
sURL = "https://domain/page.asp"
Set oXML = CreateObject("MSXML2.ServerXMLHTTP")
oXML.Open "POST", sURL, False
oXML.SetRequestHeader "Content-Type","application/x-www-form-urlencoded"
oXML.Send "txtUsername=Anthony&txtPassword=abcdefghi"
GetPostResponse = oXML.responseText
Set oXML = Nothing
But where would my XML string to post fit into this?
Driving me nutters. Any help is appreciated.
Thanks
David