473,379 Members | 1,326 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,379 software developers and data experts.

HTTP Post to a remote server

Hi All,

I have an asp page. There I enter some text. This text needs to go some
other web site but as jsp page ( such as http://www.web.com/Link.jsp).

Now, I was told to submit my asp page as HTTP Post to their jsp page.
This is completely a new thing for me to do.

I was following the sample given in
http://www.aspfaq.com/show.asp?id=2173

url = "http://www.auto.com/Link.jsp"
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "POST", url, false
xmlhttp.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
xmlhttp.send "CID=342&PWD=342&SID=342&VIN=any vin"
Response.write xmlhttp.responseText
set xmlhttp = nothing

My question is how can I use variable in VIN field there.
Also, it was giving me error message when I use the actual VIN in the
above link.
Error: There is a problem with the page you are trying to reach and it
cannot be displayed.

I am not sure whether MSXML2 is installed in the web server (IIS 5.0).

Could any one please help me. I will highly appreciate that.

Thanks a million in advance.

Kindest regards,

mamun

Jul 22 '05 #1
1 2649
you dont have to do it that way,
Just set your <FORM> tag with the remote URL. Set the Action and Method of
the tag.

Otherwise...
xmlhttp.send "CID=342&PWD=342&SID=342&VIN=" & yourVariable

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"microsoft.public.dotnet.languages.vb" <ma******@hotmail.com> wrote in
message news:11*********************@g43g2000cwa.googlegro ups.com...
Hi All,

I have an asp page. There I enter some text. This text needs to go some
other web site but as jsp page ( such as http://www.web.com/Link.jsp).

Now, I was told to submit my asp page as HTTP Post to their jsp page.
This is completely a new thing for me to do.

I was following the sample given in
http://www.aspfaq.com/show.asp?id=2173

url = "http://www.auto.com/Link.jsp"
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "POST", url, false
xmlhttp.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
xmlhttp.send "CID=342&PWD=342&SID=342&VIN=any vin"
Response.write xmlhttp.responseText
set xmlhttp = nothing

My question is how can I use variable in VIN field there.
Also, it was giving me error message when I use the actual VIN in the
above link.
Error: There is a problem with the page you are trying to reach and it
cannot be displayed.

I am not sure whether MSXML2 is installed in the web server (IIS 5.0).

Could any one please help me. I will highly appreciate that.

Thanks a million in advance.

Kindest regards,

mamun

Jul 22 '05 #2

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

Similar topics

5
by: designsimply | last post by:
I am trying to http post some xml to to a remote server using php. When I try to submit xml using PEAR's HTTP_Client::post() to the remote server, I get back the following "Invalid Document Format"...
4
by: Ben | last post by:
Hi, I have several forms that need to post data to a remote site and currently they just do a POST action with the data. I am trying to centralise the code which manages the parameters for easier...
4
by: Piotr Strycharz | last post by:
Hi all I do have a problem. How can I transfer user to another server using POST. The problem is that Server.Transfer (preserves form data) works just in current server. Response.Redirect -...
8
by: John Dalberg | last post by:
Hello For a single signon solution, I am putting a login form for a remote server on my own site. When the form gets posted, the asp.net creates a httpwebrequest object, does the post, gets the...
3
by: Patrick Fogarty | last post by:
I am programming what is to be a web service client that will use an HTTP-POST to request and retrieve data. The remote server (written in java for what it's worth) requires basic authentication...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
4
by: davidfahy | last post by:
Hi all How can I transfer user to another server using POST. The problem is that Server.Transfer (preserves form data) works just in current server. Response.Redirect - uses GET method. However...
1
by: Arfeen | last post by:
Hi All, I need help again ..... I have an asp.net web page which I hit using the "HTTP POST" method. My ASP.NET page is a basic hello world example with the following code: private void...
4
by: CindyH | last post by:
Hi: I have the following code: Dim url As String = "http://xx01xx01:800/some.ashx" Dim myrequest As System.Net.WebRequest = Nothing Dim myresponse As System.Net.WebResponse = Nothing...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.