Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Logging HTTP transport headers

 
 
Thread Tools Display Modes
Old 02-06-2007   #1 (permalink)
AVS
Guest


 

Logging HTTP transport headers

Is there a way to log out HTTP transport headers when httpTransport is used?
Clearly it is possible to print out HTTP headers of an inbound messages (ex:
service side) by examining
message.Properties[HttpRequestMessageProperty.Name].Headers, but it does not
look it is possible to print them out for outbound messages (ex: client
side). Sounds to me that the reason there is asymmetry here is because for
inbound messages transport channel is the first one, while for outbound it
is the last one, and WCF team did provide any hooks in this standard
httpTransport channel to find out which exactly HTTP headers it is about to
be sent. Am I right?

Interestingly enough there is always a way to find out exactly what will be
the body (exact byte array) by using custom encoder that just wraps standard
"internal" one and gets a chance to log exact body byte array.

Thankx.


Old 02-07-2007   #2 (permalink)
Arkady Frenkel
Guest


 

Re: Logging HTTP transport headers

Check http://msdn2.microsoft.com/en-us/library/ms751526.aspx
Arkady

"AVS" <avslivker@yahoo.com> wrote in message
news:%23GQjf$lSHHA.4260@TK2MSFTNGP06.phx.gbl...
> Is there a way to log out HTTP transport headers when httpTransport is
> used?
> Clearly it is possible to print out HTTP headers of an inbound messages
> (ex: service side) by examining
> message.Properties[HttpRequestMessageProperty.Name].Headers, but it does
> not look it is possible to print them out for outbound messages (ex:
> client side). Sounds to me that the reason there is asymmetry here is
> because for inbound messages transport channel is the first one, while for
> outbound it is the last one, and WCF team did provide any hooks in this
> standard httpTransport channel to find out which exactly HTTP headers it
> is about to be sent. Am I right?
>
> Interestingly enough there is always a way to find out exactly what will
> be the body (exact byte array) by using custom encoder that just wraps
> standard "internal" one and gets a chance to log exact body byte array.
>
> Thankx.
>



Old 02-07-2007   #3 (permalink)
AVS
Guest


 

Re: Logging HTTP transport headers

This does not help. HTTP headers do not get printed even if
logMessagesAtTransportLevel="true" and <sourcce ... switchValue="Verbose">


"Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
news:%23GUbjqoSHHA.2124@TK2MSFTNGP06.phx.gbl...
> Check http://msdn2.microsoft.com/en-us/library/ms751526.aspx
> Arkady
>
> "AVS" <avslivker@yahoo.com> wrote in message
> news:%23GQjf$lSHHA.4260@TK2MSFTNGP06.phx.gbl...
>> Is there a way to log out HTTP transport headers when httpTransport is
>> used?
>> Clearly it is possible to print out HTTP headers of an inbound messages
>> (ex: service side) by examining
>> message.Properties[HttpRequestMessageProperty.Name].Headers, but it does
>> not look it is possible to print them out for outbound messages (ex:
>> client side). Sounds to me that the reason there is asymmetry here is
>> because for inbound messages transport channel is the first one, while
>> for outbound it is the last one, and WCF team did provide any hooks in
>> this standard httpTransport channel to find out which exactly HTTP
>> headers it is about to be sent. Am I right?
>>
>> Interestingly enough there is always a way to find out exactly what will
>> be the body (exact byte array) by using custom encoder that just wraps
>> standard "internal" one and gets a chance to log exact body byte array.
>>
>> Thankx.
>>

>
>



 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAX Mail Transport Service Ed VA Vista print fax & scan 1 03-10-2008 06:12 PM
have any example code for reading HTTP status codes and headers? Hal Rottenberg PowerShell 8 08-31-2007 01:41 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50