473,320 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 4205

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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.