472,951 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

"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 4183

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: K. Wilder | last post by:
I've made an ASP form page that is executed via a Javascript function. There's a javascript function that builds an XML object with the form values. But in some browers it seems to fail on the...
2
by: John A Grandy | last post by:
Is there something special in XML about the name "Parameter" ... I am not able to XPATH query for nodes named "Parameter" <Root> <Category CategoryID="1"> <Elements> <Element...
0
by: Paul Bacelar | last post by:
I have a problem with Windows integrated authentication and Kerberos. I use the object COM ServerXMLHTTP of MSXML3. On the Open method which requires the login password of the user, I use NULL and...
1
by: Raúl Martín | last post by:
I´ve a function in asp that run correctly but If I tried to change it forasp.net in asp: xmlHTTP = CreateObject("Microsoft.XMLHTTP") And I thought to use this sentence for asp.net but the...
6
by: eXseraph | last post by:
Hi, As we know,in normal asp.net application, a browser need to send a request to a server first to refresh its page. Now I need to design a asp.net application with real-time capability like the...
2
by: rakesh kumawat | last post by:
I am facing a problem while reading the result which is loaded in DOMDocument. In which I am sending a request to web service and getting a record of Single Order. This is my VB Code which is i am...
0
by: rakeshkumawat | last post by:
I am facing a problem while reading the result which is loaded in DOMDocument. In which I am sending a request to web service and getting a record of Single Order. This is my VB Code which is i am...
1
by: paul | last post by:
I am trying to get some compatible code that will work for Safari and Firefox for MAC. The following code works great with IE for MAC, IE, Firfox and Netscape on PC: xmlDoc = new...
7
by: ankitoshniwal | last post by:
Hello, I have been having this problem for the whole day today, so even after i googled for the solution i was not able to get one, so i had to post to this forum. I had checked the solutions...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.