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? 4 1375
"_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?
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.
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?
"_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). This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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....
|
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?
|
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?
|
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. ...
| |
by: Geagleeye |
last post by:
Hi.
i have i problem such as getting the intercept point for my graph which
is made in MSgraph Access 2003. the lines in the graph is from tabel
and , i need some idea for some vba code to get the intercept point for
the lines.
|
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...
|
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...
|
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...
|
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. ...
|
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...
| |
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,...
|
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...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |