473,651 Members | 2,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to intercept OUTGOING browser data

HttpWebRequest( ) allows 'pseudo-browser' simulation to intercept
incoming HTML for 'screen scraping', etc.

But how would you do the opposite: Programmaticall y find out what a
browser is sending to a website? (Probably via POST)

I'd imagine this is done often, so maybe I'm just missing some
terminology for doing the search. It seems you'd also have to
simulate cookies to do this right. Is code available?

Nov 15 '05 #1
4 3398
"_max_" <_max_@_nospam_ .com> wrote in message
news:ib******** *************** *********@4ax.c om...
HttpWebRequest( ) allows 'pseudo-browser' simulation to intercept
incoming HTML for 'screen scraping', etc.

But how would you do the opposite: Programmaticall y find out what a
browser is sending to a website? (Probably via POST) Hi,

If you are 'the webserver' you don't use a HttWebRequest object unless *you*
write the webserver software totally yourselves.

In the ASP.NET environment, you'd use
Request.Headers["User-Agent"]
which would return for instance "Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)"
I'd imagine this is done often, so maybe I'm just missing some
terminology for doing the search. It seems you'd also have to
simulate cookies to do this right. Is code available?


Nov 15 '05 #2
On Sun, 14 Dec 2003 09:21:13 +0100, "Egbert Nierop \(MVP for IIS\)"
<eg***********@ nospam.com> wrote:
"_max_" <_max_@_nospam_ .com> wrote in message
news:ib******* *************** **********@4ax. com...
HttpWebRequest( ) allows 'pseudo-browser' simulation to intercept
incoming HTML for 'screen scraping', etc.

But how would you do the opposite: Programmaticall y find out what a
browser is sending to a website? (Probably via POST)
If you are 'the webserver' you don't use a HttWebRequest object unless *you*
write the webserver software totally yourselves.

In the ASP.NET environment, you'd use
Request.Header s["User-Agent"]
which would return for instance "Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)"


Thanks for your reply.

No, I'm not the webserver in this case. I'd like to monitor exactly
what's going on when clicking buttons on a website. If I could
intercept the stream going back from the browser when buttons are
clicked.

I turned up a post where someone referred to this as a 'sniffer', but
that's all I've found.

Nov 15 '05 #3
Hello

Check this url, it is a software that provides your needs.
http://www.pocketsoap.com/tcptrace/

In case you want to implement it yourself, what it simply does is listen to
a TCP port, The browser sends data to it, and sends everything it receives
to the server, and sends everything it receives from the server to the
browser. So it sits between the browser and the server and logs all the
communication.

Best regards
Sherif

"_max_" <_max_@_nospam_ .com> wrote in message
news:ib******** *************** *********@4ax.c om...
HttpWebRequest( ) allows 'pseudo-browser' simulation to intercept
incoming HTML for 'screen scraping', etc.

But how would you do the opposite: Programmaticall y find out what a
browser is sending to a website? (Probably via POST)

I'd imagine this is done often, so maybe I'm just missing some
terminology for doing the search. It seems you'd also have to
simulate cookies to do this right. Is code available?

Nov 15 '05 #4
"_max_" <_max_@_nospam_ .com> wrote in message
news:r0******** *************** *********@4ax.c om...
On Sun, 14 Dec 2003 09:21:13 +0100, "Egbert Nierop \(MVP for IIS\)"
<eg***********@ nospam.com> wrote:
"_max_" <_max_@_nospam_ .com> wrote in message
news:ib******* *************** **********@4ax. com...
HttpWebRequest( ) allows 'pseudo-browser' simulation to intercept
incoming HTML for 'screen scraping', etc.

But how would you do the opposite: Programmaticall y find out what a
browser is sending to a website? (Probably via POST)
If you are 'the webserver' you don't use a HttWebRequest object unless
*you*write the webserver software totally yourselves.

In the ASP.NET environment, you'd use
Request.Header s["User-Agent"]
which would return for instance "Mozilla/4.0 (compatible; MSIE 6.0; WindowsNT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)"


Thanks for your reply.

No, I'm not the webserver in this case. I'd like to monitor exactly
what's going on when clicking buttons on a website. If I could
intercept the stream going back from the browser when buttons are
clicked.

I turned up a post where someone referred to this as a 'sniffer', but
that's all I've found.

In addition, you can setup a debug session using Visual Studio that can
connect your server app (that must be compiled in debug mode) and to your
client code as well.
But maybe, you expect too much automagically things happen, the answer is
no, you really need that sniffer or a debug session. The sniffer is a lot
easier to deploy than a good debug session (that gives the info you need).
Nov 15 '05 #5

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

Similar topics

1
2101
by: Todd Smith | last post by:
I've read about Browser Helper Objects and how they load in a dll with IE and can intercept messages and change things. I've got a neat idea for a change to the icq interface, but I don't want to write a whole new app. Ideally, (if it worked like a BHO), I could have a dll installed that would load with icq and interecept messages, so instead of the icq window popup, something else would happen. Also, people could keep their icq...
13
9425
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to intercept the key so that I can do stuff on the server side to make the new window behave correctly? (We have a JSP-based webapp which stores state in the session. Now if two windows access (and modify!) the same session, then madness will result....
4
1845
by: Zoplax | last post by:
Let's say I want to watch a RichEdit control (e.g. a chat window) outside of my own C# application and intercept its Windows messages. Is there a way to do this?
4
1375
by: _max_ | last post by:
HttpWebRequest() allows 'pseudo-browser' simulation to intercept incoming HTML for 'screen scraping', etc. But how would you do the opposite: Programmatically find out what a browser is sending to a website? (Probably via POST) I'd imagine this is done often, so maybe I'm just missing some terminology for doing the search. It seems you'd also have to simulate cookies to do this right. Is code available?
25
17186
by: moondaddy | last post by:
I have an application where users need to upload images and in my web.config file I have a setting like this: <httpRuntime maxRequestLength="512" /> Which restricts image larger than 500k from being uploaded. I'm also using the HtmlInputFile control to do the uploading. My problem is that when the user's file size exceeds 512k, the page immediately redirects to the "The page cannot be displayed" error page which is very confusing. ...
1
7384
by: Ondrej Dobias | last post by:
Hello, I would like to intercept WebBrowser's HTTP requests in order to be able to supply custom login to the proxy server, as well as choose the right certificate for several specific sites. I'm trying to use the stock WebBrowser control in .NET v2.0 and have no idea how to extend it with additional interfaces that are supported by the underlying AxWebBrowser control. Many thanks for any help concerning the suitable interfaces to handle...
0
1446
by: FelixB | last post by:
Hi, I need to create a database interface in C# .NET which allows me to intercept any SQL query going out to the database (e.g. from the .NET DataAdapter) and perform certain transformations (rename keywords, modify INSERT- and UPDATE-Commands, etc.) on it before it's actually executed. The problem is, that the interface should be provider independent and transparent, so that the developer working with it need nothing to know about my...
0
1193
by: rsiena | last post by:
When a page is requested in the .net architecture I believe there are a number of events that happen prior to .net actually trying to find the page in the file system. I would like to intercept the page request at that point to interrogate the requested page for possible redirect. I remember that in ASP 1.0 this was possible. Does anyone have an idea how to do this in Dot Net? The issue is that I would like to create a virtual file...
3
5270
by: =?Utf-8?B?QnJ5YW4=?= | last post by:
I have an application that hosts a web browser control. I would like to detect when ever the browser tries to print a page and rather than print the document, store the print job off in a database for printing at a later time. There are some other controls in my application that the user could print from, so I can't have this specifically coded to the browser control. It need to intercept any print message generated from my application. ...
0
8802
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
8697
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8579
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...
1
6158
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
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2699
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
1
1909
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.