473,656 Members | 2,819 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Capture http post request

Hi,
I would like to find out exactly what is being sent when a web page uses the
post request method. My thought was to use the webbrowser control together
with the HTTPWebRequest class, but am having trouble tying the two together.
Any ideas?

Thanks,
Clif
Nov 27 '05 #1
6 10429
Hi Clif,

Welcome to MSDN newsgroup.
From your description, you're wantting to capture the HTTP request/respons
's content sent between client webbrowser and the webserver.... , yes?

Generally, for diagnostics or tracing purpose, we can consider using some
protocol tracing tools. And the Trace Utility (in SOAP Toolkit 3.0) or the
TcpTrace (.net version...) are good and simple for general tracing of HTTP/
TCP message....

You can get them through the following link:

#SOAP Toolkit 3.0(just use the Trace Utility in it....)
http://www.microsoft.com/downloads/d...0dd-ceec-4088-
9753-86f052ec8450&di splaylang=en

#Tcp Trace
http://www.pocketsoap.com/tcptrace/
http://jarok.cs.ohiou.edu/software/t.../download.html

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



--------------------
| Reply-To: "Clif" <Mi*******@comm unity.nospam>
| From: "Clif" <Mi*******@comm unity.nospam>
| Subject: Capture http post request
| Date: Sun, 27 Nov 2005 10:12:49 -0500
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <ee************ **@TK2MSFTNGP09 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bel lsouth.net
65.12.165.118
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:305927
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
|
| Hi,
| I would like to find out exactly what is being sent when a web page uses
the
| post request method. My thought was to use the webbrowser control
together
| with the HTTPWebRequest class, but am having trouble tying the two
together.
| Any ideas?
|
| Thanks,
| Clif
|
|
|

Nov 28 '05 #2
Unless you want to write the code yourself for some application, you can
download Fiddler from http://www.fiddlertool.com/fiddler/ and find out what
you want.

If you want to do it yourself, I think the approach might look at how you
would capture Internet Explorer's history. I think you would use the windows
API calls like FindFirstUrlCac heEntry from the wininet.dll library.

Based on some code I found via Google, when I was programming in Delphi I
managed to get such an application running. I tried in VB.net once but ran
into some problems and never finished the project.

Do a Google search to see if you can find something.
"Clif" <Mi*******@comm unity.nospam> wrote in message
news:ee******** ******@TK2MSFTN GP09.phx.gbl...
Hi,
I would like to find out exactly what is being sent when a web page uses
the post request method. My thought was to use the webbrowser control
together with the HTTPWebRequest class, but am having trouble tying the
two together. Any ideas?

Thanks,
Clif

Nov 28 '05 #3

Clif wrote:
Hi,
I would like to find out exactly what is being sent when a web page uses the
post request method. My thought was to use the webbrowser control together
with the HTTPWebRequest class, but am having trouble tying the two together.
Any ideas?


HTTPLook and IEWatch are both useful tools for this kind of thing.

--
Larry Lard
Replies to group please

Nov 28 '05 #4
Many thanks to all!
"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:zy******** *******@TK2MSFT NGXA02.phx.gbl. ..
Hi Clif,

Welcome to MSDN newsgroup.
From your description, you're wantting to capture the HTTP request/respons
's content sent between client webbrowser and the webserver.... , yes?

Generally, for diagnostics or tracing purpose, we can consider using some
protocol tracing tools. And the Trace Utility (in SOAP Toolkit 3.0) or the
TcpTrace (.net version...) are good and simple for general tracing of
HTTP/
TCP message....

You can get them through the following link:

#SOAP Toolkit 3.0(just use the Trace Utility in it....)
http://www.microsoft.com/downloads/d...0dd-ceec-4088-
9753-86f052ec8450&di splaylang=en

#Tcp Trace
http://www.pocketsoap.com/tcptrace/
http://jarok.cs.ohiou.edu/software/t.../download.html

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



--------------------
| Reply-To: "Clif" <Mi*******@comm unity.nospam>
| From: "Clif" <Mi*******@comm unity.nospam>
| Subject: Capture http post request
| Date: Sun, 27 Nov 2005 10:12:49 -0500
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <ee************ **@TK2MSFTNGP09 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bel lsouth.net
65.12.165.118
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:305927
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
|
| Hi,
| I would like to find out exactly what is being sent when a web page uses
the
| post request method. My thought was to use the webbrowser control
together
| with the HTTPWebRequest class, but am having trouble tying the two
together.
| Any ideas?
|
| Thanks,
| Clif
|
|
|

Nov 28 '05 #5
You're Welcome Clif,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Reply-To: "Clif" <Mi*******@comm unity.nospam>
| From: "Clif" <Mi*******@comm unity.nospam>
| References: <ee************ **@TK2MSFTNGP09 .phx.gbl>
<zy************ *@TK2MSFTNGXA02 .phx.gbl>
| Subject: Re: Capture http post request
| Date: Mon, 28 Nov 2005 16:28:31 -0500
| Lines: 78
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <eb************ *@TK2MSFTNGP10. phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bel lsouth.net
65.12.165.118
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:306115
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
|
| Many thanks to all!
|
|
| "Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
| news:zy******** *******@TK2MSFT NGXA02.phx.gbl. ..
| > Hi Clif,
| >
| > Welcome to MSDN newsgroup.
| > From your description, you're wantting to capture the HTTP
request/respons
| > 's content sent between client webbrowser and the webserver.... , yes?
| >
| > Generally, for diagnostics or tracing purpose, we can consider using
some
| > protocol tracing tools. And the Trace Utility (in SOAP Toolkit 3.0) or
the
| > TcpTrace (.net version...) are good and simple for general tracing of
| > HTTP/
| > TCP message....
| >
| > You can get them through the following link:
| >
| > #SOAP Toolkit 3.0(just use the Trace Utility in it....)
| >
http://www.microsoft.com/downloads/d...0dd-ceec-4088-
| > 9753-86f052ec8450&di splaylang=en
| >
| > #Tcp Trace
| > http://www.pocketsoap.com/tcptrace/
| > http://jarok.cs.ohiou.edu/software/t.../download.html
| >
| > Hope helps. Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| >
| > --------------------
| > | Reply-To: "Clif" <Mi*******@comm unity.nospam>
| > | From: "Clif" <Mi*******@comm unity.nospam>
| > | Subject: Capture http post request
| > | Date: Sun, 27 Nov 2005 10:12:49 -0500
| > | Lines: 10
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | Message-ID: <ee************ **@TK2MSFTNGP09 .phx.gbl>
| > | Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| > | NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bel lsouth.net
| > 65.12.165.118
| > | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| > | Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.langua ges.vb:305927
| > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
| > |
| > | Hi,
| > | I would like to find out exactly what is being sent when a web page
uses
| > the
| > | post request method. My thought was to use the webbrowser control
| > together
| > | with the HTTPWebRequest class, but am having trouble tying the two
| > together.
| > | Any ideas?
| > |
| > | Thanks,
| > | Clif
| > |
| > |
| > |
| >
|
|
|

Nov 29 '05 #6
Hi there,

I know try develop application like SQUID on linux that work for packet
filter. I have read an article at www.codeproject.com about Packet Filter
API, sound interesting. But then i want to modify it so that the filter work
not from packet source and destination IP, but for packet request.

For example i want to block my client computer can not download or request
*.exe file from any website. So i only need to put filter of request that
contains .exe on the tail, then anyone who want to request .exe file will
droped.

For how to see any packet that walk on adapter i can use Sniff method, the
article also provide by www.codeproject.com.

PS: The first one maybe only for http request, the rest i will develop my
self and will published at www.codeproject.com (i don't know where to publish
a project at MSDN).

Thanks for your help and attention.

"Steven Cheng[MSFT]" wrote:
Hi Clif,

Welcome to MSDN newsgroup.
From your description, you're wantting to capture the HTTP request/respons
's content sent between client webbrowser and the webserver.... , yes?

Generally, for diagnostics or tracing purpose, we can consider using some
protocol tracing tools. And the Trace Utility (in SOAP Toolkit 3.0) or the
TcpTrace (.net version...) are good and simple for general tracing of HTTP/
TCP message....

You can get them through the following link:

#SOAP Toolkit 3.0(just use the Trace Utility in it....)
http://www.microsoft.com/downloads/d...0dd-ceec-4088-
9753-86f052ec8450&di splaylang=en

#Tcp Trace
http://www.pocketsoap.com/tcptrace/
http://jarok.cs.ohiou.edu/software/t.../download.html

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



--------------------
| Reply-To: "Clif" <Mi*******@comm unity.nospam>
| From: "Clif" <Mi*******@comm unity.nospam>
| Subject: Capture http post request
| Date: Sun, 27 Nov 2005 10:12:49 -0500
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <ee************ **@TK2MSFTNGP09 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bel lsouth.net
65.12.165.118
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:305927
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
|
| Hi,
| I would like to find out exactly what is being sent when a web page uses
the
| post request method. My thought was to use the webbrowser control
together
| with the HTTPWebRequest class, but am having trouble tying the two
together.
| Any ideas?
|
| Thanks,
| Clif
|
|
|

Feb 4 '06 #7

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

Similar topics

3
13499
by: Me Mine | last post by:
i, I have trying to code a small console app that will allow a user to select a window and then create a screen capture of the window. I haven't been able to figure out how to do the screen capture part. The code is as follows, the commented out lines at the end are things I have tried, but don't work. Whenever I try to create a compatibe Bitmap or DC it comes back with an error as win32ui: CreateCompatibleDC failed
1
4320
by: Jim Quast | last post by:
I have an ASP page and a CREGReports002.vbs file coded to export data to excel. I do this by building variables in a stored procedure. The ASP page has text boxes, list boxes, and radio buttons. I also placed two buttons on the form. One submits the form to redirect to the Crystal Web Viewer (genCREGReports.ASP). The other one executes VB code in a vbs document that spawns some more code to run a stored procedure with the values from...
1
1289
by: Hardy Wang | last post by:
Hi, I am wandering is it possible to capture all values posted (Http Post) from a web site to a web service? I would like to do something like following in web form: HttpContext ctx = HttpContext.Current; NameValueCollection forms = ctx.Request.Form; for (int i = 0; i < forms.Count; i++) { // get key name: forms.GetKey(i) // get value: forms }
1
1874
by: FD | last post by:
For performance reason, the follwoing code (C#) to capture all the Request collection contexts is NOT recommended: string ID = Request.QueryString; But how to Capture the individual Request properties needed in the application? Thanks, FD
3
2016
by: malcolm | last post by:
Inside of a Page class, how do I capture the Request object values before the Page_Load event is called of that Page? I have a situation where I have many server controls on a Page that get created in the constructor of my Page, but I need them to know about some info that get's set via the Page_Load from the Request (and even Session for that matter) thanks! Dave
4
1453
by: sck10 | last post by:
Hello, I want to allow all users on our company intranet (domain\handle) to enter our website. However, I would like to capture the handle of the person entering my website. I was told that if I turn on Enable Anonymous Access and Integrated Windows Authentication, that all users will pass through, and there is a way to capture their handle. Is this possible? Right now I have Integrated Windows Authentication turned on and using the...
4
4592
by: Rich Halliwell | last post by:
I have a script that catches javascript errors and sends them through ajax to a specified file through the POST proticol. I want to write an ASP file which can read this xml file and act on its response. I have a CGI/PERL equivalent but i'm not sure how to read the xml file in asp neatly: use CGI; use CGI::Carp qw(set_progname); use XML::Simple; my $request = CGI->new(); my $method = $request->request_method(); # method must be POST...
12
14611
by: Tom Bean | last post by:
I am writing a C# Windows service that calls methods on a remote web service and would like to capture the XML returned by the web service. The reason I need the raw XML is for back up to the sub-set of data I am saving to a database. All the posts I have found seem to assume one has access to both the client and server applications but since the web service is remote, I can only control the client side. Any help in learning how to...
0
8382
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8297
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,...
0
8816
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8600
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
7311
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
6162
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
5629
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
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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 we have to send another system

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.