473,395 Members | 1,535 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,395 software developers and data experts.

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 10406
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
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

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***************@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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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...
1
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. ...
1
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 =...
1
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...
3
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...
4
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...
4
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...
12
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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,...
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...

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.