473,602 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("M SXML2.ServerXML HTTP")
xmlhttp.open "POST", url, false
xmlhttp.setRequ estHeader "Content-Type",
"applicatio n/x-www-form-urlencoded"
xmlhttp.send "CID=342&PWD=34 2&SID=342&VIN=a ny vin"
Response.write xmlhttp.respons eText
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 2672
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=34 2&SID=342&VIN =" & yourVariable

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"microsoft.publ ic.dotnet.langu ages.vb" <ma******@hotma il.com> wrote in
message news:11******** *************@g 43g2000cwa.goog legroups.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("M SXML2.ServerXML HTTP")
xmlhttp.open "POST", url, false
xmlhttp.setRequ estHeader "Content-Type",
"applicatio n/x-www-form-urlencoded"
xmlhttp.send "CID=342&PWD=34 2&SID=342&VIN=a ny vin"
Response.write xmlhttp.respons eText
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
11802
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" error: Array ( => 200 => Array ( => close
4
1304
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 upgrade and maintenance, so i was thinking of having all the form 'submit' buttons just pass the data to my class which would take care of forming the Query to be sent across. Just wondering, to make this call (HTTP POST) should i use some...
4
2869
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 - uses GET method. However I have to open remote server page using POST method. Normally this can be achieved using <form ACTION="remote-page-url"> tag. However this is impossible with ASP.NET. Also, using WebRequest class is not good solution, as I...
8
1792
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 request, flushes the current response object, puts the response from the post into the current post and it gets sent back to the browser. The browser shows the after login page correctly. The problem is that the browser's url is still showing...
3
6898
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 as per RFC 2617 (http://www.faqs.org/rfcs/rfc2617.html). My attempts to authenticate are failing. The server requires the header to be present with the request. For security reasons, it will not reply in any way if the header is not present. ...
15
4587
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 communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
4
2250
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 I have to open a remote server page using POST method. Using HttpWebRequest class is not good solution, as I can post to and read data from remote server, but user browser itselft is still connected to my
1
2596
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 Page_Load(object sender, System.EventArgs e) {
4
2224
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 'Prepare web request myrequest = System.Net.WebRequest.Create(url) 'use POST
0
7920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8268
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6730
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5867
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1254
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.