468,765 Members | 1,753 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

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

Hi,

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
testing.aspx,

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

it print out value like this,

HTTP_STATUS=1
HTTP_REF_ID=5354
HTTP_RESPONSE_TYPE=MT

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 3984

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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.