Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Logging HTTP transport headers

 
 
Old 02-06-2007   #1 (permalink)
AVS


 
 

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.



My System SpecsSystem Spec
Old 02-07-2007   #2 (permalink)
Arkady Frenkel


 
 

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.
>



My System SpecsSystem Spec
Old 02-07-2007   #3 (permalink)
AVS


 
 

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.
>>

>
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
FAX Mail Transport Service Vista print fax & scan
fax mail transport does not work Vista print fax & scan
have any example code for reading HTTP status codes and headers? PowerShell


Vista Forums 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 Ltd

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