By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,673 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,673 IT Pros & Developers. It's quick & easy.

Capture the HTTP request header?

P: n/a
Hello, I'm making HTTP requests with System.Net.HTTPWebRequest and I
want to capture the entire header of the request as a string. I'm able
to do this with responses but now the requests. Am I missing it in the
API somewhere or is there another way?

thank you
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
mrbog,

The HttpWebRequest has a headers property that has all of the headers.
This collection, combined with the properties on the HttpWebRequest
(UserAgent, for example), will give you all of the headers that are sent.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"mrbog" <dt******@hotmail.com> wrote in message
news:cb**************************@posting.google.c om...
Hello, I'm making HTTP requests with System.Net.HTTPWebRequest and I
want to capture the entire header of the request as a string. I'm able
to do this with responses but now the requests. Am I missing it in the
API somewhere or is there another way?

thank you

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.