By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,107 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,107 IT Pros & Developers. It's quick & easy.

Capture http post request

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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&displaylang=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*******@community.nospam>
| From: "Clif" <Mi*******@community.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.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!TK2MSFT NGP09.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
|
|
|

Nov 28 '05 #2

P: n/a
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" <Mi*******@community.nospam> wrote in message
news:ee**************@TK2MSFTNGP09.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

P: n/a

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

P: n/a
Many thanks to all!
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:zy***************@TK2MSFTNGXA02.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&displaylang=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*******@community.nospam>
| From: "Clif" <Mi*******@community.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.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!TK2MSFT NGP09.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
|
|
|

Nov 28 '05 #5

P: n/a
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*******@community.nospam>
| From: "Clif" <Mi*******@community.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.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!TK2MSFT NGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.languages.vb:306115
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Many thanks to all!
|
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:zy***************@TK2MSFTNGXA02.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&displaylang=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*******@community.nospam>
| > | From: "Clif" <Mi*******@community.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.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!TK2MSFT NGP09.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
| > |
| > |
| > |
| >
|
|
|

Nov 29 '05 #6

P: n/a
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&displaylang=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*******@community.nospam>
| From: "Clif" <Mi*******@community.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.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!TK2MSFT NGP09.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
|
|
|

Feb 4 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.