473,406 Members | 2,847 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,406 software developers and data experts.

How to find out the content of the HTTP Request when a web form isautomaically submitted?

Hi,
I'm writing a program what given a homepage url, it can automatically
navigate to the page that contains the query form, fill the form and
submit it.

mshtml.IHTMLInputElement zipCodeQueryBox =
FindZipCodeQueryBox(inputElements);
zipCodeQueryBox.value = "60616";
zipCodeQueryBox.form.submit();

Now I'm trying to figure out after zipCodeQueryBox.form.submit(); is
called, what the content (post data) of the HTTP Request is sent out
to the server?
Is there an easy way to get this piece of information?

Thanks!
Feb 13 '08 #1
1 1187
I think I cannot use HttpWebRequest unless I know the format of
postData. (maybe I'm wrong)
My ultimate goal is, by submitting the form, AUTOMATICALLY figure out
the format of postData, and then generate many new HttpWebRequest by
replacing the value in postData.

For example, if postData=
"template=map_search&maxSearchResults=20&radius=10 0&stateProvince=&stateName=&closestn=20&ambiguitie s=0&city=&state=&postalCode=60616",
how can I automatically get this information after submitting the
form?

I know Fiddler can do it, but I don't know how to use its API to do it
in code.
Feb 13 '08 #2

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

Similar topics

4
by: nc | last post by:
My iterator can find my collection when my Action class calls my jsp directly, however when my Action class calls an html file that is set up with IFrames (one of which is loading that same jsp), I...
5
by: Wayne Wengert | last post by:
I am trying to use Request.Form to differentiate between when a page containing a form is first loaded and when it is reloaded as a result of the user clicking on the Submit button. Things are not...
3
by: M Wells | last post by:
Hi All, I'm wondering if anyone can point me to some JavaScript code I can drop into a page to respond to an attempt to click on specific links if content in textarea on a form has been changed...
2
by: Ruskin Hardie | last post by:
There is an iframe in my document that is hidden, which is the target for a submitted form. When the form is submitted, some javascript sets a hidden div, to displaying, eg: ...
2
by: SR | last post by:
I have started a web site using ASP.NET 2.0. I would like to centralize all of my classes in a StyleSheet but I cannot figure out how to link the StyleSheet to a Content Page since there is no...
9
by: Dave | last post by:
Hi, I've been trawling the web for answer to my problem with no luck although I'm hardly alone it seems! Below is the generated source for an ASP page that posts a value called 'album' to...
2
by: Terry On Windigo | last post by:
I must have forgotten someting. I did something like this about 4 years ago and got it to work. Now I need to do it again and I get this error message: Technical Information (for support...
2
by: patrice.pare | last post by:
Hello, Here is a summary of my Dev Environment: I use Visual Studio 2005 Team Suite SP1 with Crystal Report XI SP1 on a Windows XP SP2 development workstation. I also use SQL Server 2000 SP4. ...
2
by: Bob | last post by:
I am trying to obtain values of a submitted form when the form is inside a content placeholder via a master page. For example: <asp:content contentplaceholderid="contentMain" runat="server">...
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...
0
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
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...
0
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
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,...
0
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...

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.