471,111 Members | 1,595 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,111 software developers and data experts.

"MSXML2.ServerXMLHTTP" add 'HTTP' in front of all request parameter


I need to write a ASPX file that will post some request to other party
(web service written in java),
here is my code,

<%@ Page aspcompat=true %>
Dim xml, url

xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
url = "http://localhost/Testing.aspx"
xml.Open ("POST", url, False)
xml.SetRequestHeader ("status","1" )
xml.SetRequestHeader ("ref_id","5354" )
xml.SetRequestHeader ("response_type","MT" )
xml.Send ()
Response.Write (xml.responsetext)
xml = nothing


the problem is, when I print out all the request valriable in the

Dim strTmp as New StringBuilder()
Dim strHeader as String
For each strHeader in Request.ServerVariables
strTmp.Append(vbTab & strHeader & "=" & Request(strHeader) &
iRet = WriteLog(strTmp.ToString())

it print out value like this,


is this normal? how to make it don't include a HTTP in front of all request
parameter ? (the other party (written in java) didn't expect these HTTP).
Thanks in advance for any help offered.
Nov 12 '05 #1
0 4085

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by John A Grandy | last post: by
reply views Thread by Paul Bacelar | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.