Discussion:
Trap http Request and Response Header
(too old to reply)
Vaibhav
2004-11-04 12:49:37 UTC
Permalink
Hi,

I am trying to write a web browser control Application in c#,
i want to trap al http request and response header which are sent/recieved.
I am new to Windows programming

With Regards,
Vaibhav
Igor Tandetnik
2004-11-04 15:11:10 UTC
Permalink
Post by Vaibhav
I am trying to write a web browser control Application in c#,
i want to trap al http request and response header which are
sent/recieved. I am new to Windows programming
It's not easy. See

http://groups.google.com/groups?threadm=u0bu6ca6DHA.2556%40TK2MSFTNGP09.phx.gbl
--
With best wishes,
Igor Tandetnik

"On two occasions, I have been asked [by members of Parliament], 'Pray,
Mr. Babbage, if you put into the machine wrong figures, will the right
answers come out?' I am not able to rightly apprehend the kind of
confusion of ideas that could provoke such a question." -- Charles
Babbage
Nicholas Paldino [.NET/C# MVP]
2004-11-04 15:13:07 UTC
Permalink
Vaibhav,

If you are embedding the web browser control in your application, there
is little that you can do to capture the headers. The model is pretty
closed, at least for the webbrowser itself (it doesn't provide the normal
hooks into the download process). You ^could^ create a shell IMoniker
interface implementation, and then intercept all the calls (and the calls to
the streams). This way, you might be able to get the information you want,
but it wouldn't be easy.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
Post by Vaibhav
Hi,
I am trying to write a web browser control Application in c#,
i want to trap al http request and response header which are
sent/recieved.
I am new to Windows programming
With Regards,
Vaibhav
Continue reading on narkive:
Loading...