 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Eugene V. Goldberg Guest
|
Posted: Thu Sep 29, 2005 2:17 pm Post subject: how to intercept HTTP Post |
|
|
Hi there guys,
How in my application do i intercept HTTP Post operations being done
in Internet Explorer or other browser...So when user submits a form
with a number of fields, i can get the submitted values and pass it further?
Should i hook Winsock send/recv or there is more high-level API to hook on?
Code samples would be greatly appreciated.
Thanx alot,
Eugene.
|
|
| Back to top |
|
 |
Eugene V. Goldberg Guest
|
Posted: Thu Sep 29, 2005 5:09 pm Post subject: Re: how to intercept HTTP Post |
|
|
pretty simple :)
just hook HttpSendRequestA/W and all the data is there in lpOptional param.
"Eugene V. Goldberg" <egold (AT) mts-nn (DOT) ru> wrote
| Quote: | Hi there guys,
How in my application do i intercept HTTP Post operations being done
in Internet Explorer or other browser...So when user submits a form
with a number of fields, i can get the submitted values and pass it
further?
Should i hook Winsock send/recv or there is more high-level API to hook
on?
Code samples would be greatly appreciated.
Thanx alot,
Eugene.
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Sep 29, 2005 7:47 pm Post subject: Re: how to intercept HTTP Post |
|
|
"Eugene V. Goldberg" <egold (AT) mts-nn (DOT) ru> wrote
| Quote: | How in my application do i intercept HTTP Post operations
being done in Internet Explorer or other browser...
|
You can use an NDIS device driver that hooks the WinSock stack directly. If
you do not want to write your own device driver from scratch (which you
cannot do with Borland's tools anyway - you need Microsoft's DDK for that),
then look at using a third-party driver, such as WinPCap
([url]http://www.winpcap.org)[/url].
| Quote: | So when user submits a form with a number of fields, i can get
the submitted values and pass it further?
|
That, on the other hand, is a very different issue. In the case of IE
specifically, there are ways you can hook the browser window directly via
its own DOM interfaces without using a device driver at all. This does not
work for any other browser. Refer to MSDN for more details, or search at
http://www.deja.com for earlier posts on this issue.
Gambit
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|