Capture the HTTP request header?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mrbog

    #1

    Capture the HTTP request header?

    Hello, I'm making HTTP requests with System.Net.HTTP WebRequest 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
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Capture the HTTP request header?

    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]
    - nicholas.paldin o@exisconsultin g.com

    "mrbog" <dterrors@hotma il.com> wrote in message
    news:cbd4bb52.0 307101657.2bb0e 677@posting.goo gle.com...[color=blue]
    > Hello, I'm making HTTP requests with System.Net.HTTP WebRequest 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[/color]


    Comment

    Working...