<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>It Hurts When I Set the User Agent</title><link>http://blogs.msdn.com/drnick/archive/2006/07/27/It-Hurts-When-I-Set-the-User-Agent.aspx</link><description>Consider the following simple test server that uses no WCF code at all. using System; using System.Net; class Server { static void Main( string [] args) { HttpListener listener = new HttpListener(); listener.Prefixes.Add( "http://localhost:1000/" ); listener.Start();</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Interesting Finds: July 27, 2006</title><link>http://blogs.msdn.com/drnick/archive/2006/07/27/It-Hurts-When-I-Set-the-User-Agent.aspx#681093</link><pubDate>Fri, 28 Jul 2006 06:24:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:681093</guid><dc:creator>Jason Haley</dc:creator><description /></item><item><title>re: It Hurts When I Set the User Agent</title><link>http://blogs.msdn.com/drnick/archive/2006/07/27/It-Hurts-When-I-Set-the-User-Agent.aspx#701580</link><pubDate>Tue, 15 Aug 2006 23:50:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:701580</guid><dc:creator>scott o</dc:creator><description>Dropped but still available:&lt;br&gt;&lt;br&gt;HttpListenerContext context = listener.GetContext ();&lt;br&gt;HttpListenerRequest request = context.Request;&lt;br&gt;&lt;br&gt;Console.WriteLine (&amp;quot;{0}&amp;quot;, request.UserAgent);&lt;br&gt;</description></item><item><title>re: It Hurts When I Set the User Agent</title><link>http://blogs.msdn.com/drnick/archive/2006/07/27/It-Hurts-When-I-Set-the-User-Agent.aspx#701701</link><pubDate>Wed, 16 Aug 2006 01:42:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:701701</guid><dc:creator>Nicholas Allen</dc:creator><description>That's what you do if you have access to the request object. &amp;nbsp;The HTTP transport in WCF uses HttpListener internally but doesn't make the listener context visible. &amp;nbsp;You have to wait for the framework to get updated even though the change in the framework is one line.</description></item></channel></rss>