473,498 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP/VBScript Form Post Handling

Hi there,

Just a quick question. I'm more familiar with C# and ASP.NET but need
to use ASP/VBScript for a quick project.

I have a form that uploads content to a server not managed by us. When
the form is filled in and posted, the response from the server is an
XML response. However when that happens, I'm not longer at my asp
page, I'm redirected the XML response URL that's managed by the third
party server.

I have two questions are a result:
1) I understand I can use XmlHTTP to simulate a form and post that
using XmlHttp.Send String. However, the form that uploads content is
quite complex. It contains 4 type=text input fields, 1 textarea field,
and a type=file field.
How would I specify all this in the XmlHttp.Send String? More
specifically, how would I specify the type=file field? When using a
proxy trace application to manually intercept my post, the type=file
field looks like this:
Content-Disposition: form-data; name="file1"; filename="C:
\mediaexample.wmv"
Content-Type: video/x-ms-wmv

2) Is there anyway to specify a html form in the XmlHttp.Send? So
instead of having to build a string with all the form information,
just reference the form name and Send that instead?

Any ideas would be appreciate. For the record, I've done extensive
browsing, and although I've come across useful information, nothing
that quite answers my dilemma. If I'm overlooking the obvious, please
let me know.

Thanks.
Jun 27 '08 #1
1 4706
2) Is there anyway to specify a html form in the XmlHttp.Send? So
instead of having to build a string with all the form information,
just reference the form name and Send that instead?
Why not just do
Set http = Server.CreateObject("msxml2.ServerXMLHTTP")
http.Open "POST", "...url..."
http.Send Request.Form
???

That is, just "forward" the entire contens of the form to the remote site??
>
Any ideas would be appreciate. For the record, I've done extensive
browsing, and although I've come across useful information, nothing
that quite answers my dilemma. If I'm overlooking the obvious, please
let me know.

Thanks.
Jun 27 '08 #2

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

Similar topics

6
13796
by: BP Prgm | last post by:
This is my VBScript function: <script language="JavaScript" type="text/JavaScript"> Dim UN Set objNet = CreateObject("WScript.NetWork") Set objUser = GetObject("WinNT://my domain/" &...
4
9280
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
3
2960
by: Drwtsn32 | last post by:
Hi Guys, I'm ripping off all of my hair soon ;-) I'm trying to do a very simple C# form accessible from COM client like VBScript. I would like to display the form and update the form during...
2
2243
by: Esa | last post by:
Hi, I'm having problems with one strange web system where submitting an application and making queries about its handling status require a series of form submits and response parsing - all in...
1
4198
by: JNariss | last post by:
Hello, I have created a connection to my Access database with Dreamweaver and made a simple form with 4 fields. The code behind this form was/is: <%@LANGUAGE="VBCRIPT" CODEPAGE="1252"%>...
6
12572
by: Julien | last post by:
Hello, I have some files located in a file server and managed by a SQL database from a web based interface using ASP + VBSCRIPT technology. I need to automatically copy those files to a web...
7
13423
by: skeddy | last post by:
In a nutshell, I'm trying to dynamically create a select box with ResultSet code in vbscript and then need to be able to access the value of that select box later with a Save button. I've got...
5
2466
by: md9108 | last post by:
I created, using some borrowed code, an asp search page for our intranet. I'm using frontpage 2003. When I publish I get that complation error on different lines at different times. They all seem...
2
8498
by: moodyman13 | last post by:
Hi All, I’m in a bit of pickle with ASP and VBscript variable and hope someone could get me some advice. There’s a FORM’ I’ve created in ASP and its purpose is to capture the name(s) of users....
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7004
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...
0
7379
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...
0
5464
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,...
1
4915
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...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
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...

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.