Capture http post request

  • Thread starter Thread starter Clif
  • Start date Start date
C

Clif

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
 
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/details.aspx?familyid=c943c0dd-ceec-4088-
9753-86f052ec8450&displaylang=en

#Tcp Trace
http://www.pocketsoap.com/tcptrace/
http://jarok.cs.ohiou.edu/software/tcptrace/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" <[email protected]>
| From: "Clif" <[email protected]>
| 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: <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bellsouth.net
65.12.165.118
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.languages.vb:305927
| X-Tomcat-NG: microsoft.public.dotnet.languages.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
|
|
|
 
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 FindFirstUrlCacheEntry 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 said:
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.
 
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" <[email protected]>
| From: "Clif" <[email protected]>
| References: <[email protected]>
<zykmu#[email protected]>
| 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: <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bellsouth.net
65.12.165.118
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.languages.vb:306115
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Many thanks to all!
|
|
| | > 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/details.aspx?familyid=c943c0dd-ceec-4088-
| > 9753-86f052ec8450&displaylang=en
| >
| > #Tcp Trace
| > http://www.pocketsoap.com/tcptrace/
| > http://jarok.cs.ohiou.edu/software/tcptrace/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" <[email protected]>
| > | From: "Clif" <[email protected]>
| > | 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: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bellsouth.net
| > 65.12.165.118
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.languages.vb:305927
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.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
| > |
| > |
| > |
| >
|
|
|
 
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.
 
Back
Top