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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

manage XML with ASp

Status
Not open for further replies.

khadem1386

Programmer
May 11, 2007
1
IR
Hi
I want send and resice XML by ASP.

how can I ADD XML file neme to this code for post it?




URL = “set oXMLHTTP = Server.CreateObject(“MSXML2.ServerXMLHTTP”)
oXMLHTTP.Open “POST”,URL,”false”
oXMLHTTP.setRequestHeader “Referer”,”YourCompanyName”
oXMLHTTP.setRequestHeader “Host”, “SSLserver.fedex.com:8000”
oXMLHTTP.setRequestHeader “Accept”,”image/gif, image/jpeg, image/pjpeg, text/plain, text/html, */*”
oXMLHTTP.setRequestHeader “Content-Type”,”image/gif”
oXMLHTTP.setRequestHeader “Content-Length”, cStr(len(TS))
oXMLHTTP.send TS
ResultBytes = oXMLHTTP.responseBody
‘Convert the ByteArray data to a String
for index = LBound( ResultBytes) To UBound( ResultBytes ) + 1
ResultString = ResultString & Chr(AscB(MidB( ResultBytes, index, 1 )))
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top