<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ASP.NET 400 Bad Request with restricted characters</title>
	<atom:link href="http://lostechies.com/joshuaflanagan/2009/04/28/asp-net-400-bad-request-with-restricted-characters/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/joshuaflanagan/2009/04/28/asp-net-400-bad-request-with-restricted-characters/</link>
	<description></description>
	<lastBuildDate>Thu, 14 Mar 2013 03:50:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Tom Scarr</title>
		<link>http://lostechies.com/joshuaflanagan/2009/04/28/asp-net-400-bad-request-with-restricted-characters/#comment-40</link>
		<dc:creator>Tom Scarr</dc:creator>
		<pubDate>Wed, 02 Jun 2010 10:06:13 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2009/04/27/asp-net-400-bad-request-with-restricted-characters.aspx#comment-40</guid>
		<description>I&#039;m having a similar issue with the &#039;ASP.Net 400 Bad request with restricted characters&#039; issue when hosting with IIS7. I am base 64 encoding some of the parameters. I cannot see any problematic characters such as ampersands etc in the following url:

http://localhost/Revolution/PrintingWm/PrintPageAsPdf/1/UGVyZm9ybWFuY2UgT3ZlcnZpZXcgLSA1WSBFcXVpdHk/eyJhbmFseXNpc0V4ZWN1dGlvbklkIjoic2hhcnJpczsyODNkZjQxOC03MDgxLTQ2MWQtODEwYi1lMzU1ZTYzNjk4NGEiLCJwZXJpb2RDb2RlIjoiRWFybGllc3QiLCJzdGF0aXN0aWNzTWVhc3VyZUxheW91dElkIjoiMzIiLCJiYXJDaGFydE1lYXN1cmVMYXlvdXRJZCI6IjYwIiwibnVtYmVyT2ZMb3dWYWx1ZXMiOjUsIm51bWJlck9mSGlnaFZhbHVlcyI6NX0=

Can anyone suggest whether there are problematic characters here that would cause ASP.Net to be unhappy? I may end up resorting to query strings as that seems to work. But I&#039;m still confused as to why this Url would not be accepted.</description>
		<content:encoded><![CDATA[<p>I&#8217;m having a similar issue with the &#8216;ASP.Net 400 Bad request with restricted characters&#8217; issue when hosting with IIS7. I am base 64 encoding some of the parameters. I cannot see any problematic characters such as ampersands etc in the following url:</p>
<p><a href="http://localhost/Revolution/PrintingWm/PrintPageAsPdf/1/UGVyZm9ybWFuY2UgT3ZlcnZpZXcgLSA1WSBFcXVpdHk/eyJhbmFseXNpc0V4ZWN1dGlvbklkIjoic2hhcnJpczsyODNkZjQxOC03MDgxLTQ2MWQtODEwYi1lMzU1ZTYzNjk4NGEiLCJwZXJpb2RDb2RlIjoiRWFybGllc3QiLCJzdGF0aXN0aWNzTWVhc3VyZUxheW91dElkIjoiMzIiLCJiYXJDaGFydE1lYXN1cmVMYXlvdXRJZCI6IjYwIiwibnVtYmVyT2ZMb3dWYWx1ZXMiOjUsIm51bWJlck9mSGlnaFZhbHVlcyI6NX0=" rel="nofollow">http://localhost/Revolution/PrintingWm/PrintPageAsPdf/1/UGVyZm9ybWFuY2UgT3ZlcnZpZXcgLSA1WSBFcXVpdHk/eyJhbmFseXNpc0V4ZWN1dGlvbklkIjoic2hhcnJpczsyODNkZjQxOC03MDgxLTQ2MWQtODEwYi1lMzU1ZTYzNjk4NGEiLCJwZXJpb2RDb2RlIjoiRWFybGllc3QiLCJzdGF0aXN0aWNzTWVhc3VyZUxheW91dElkIjoiMzIiLCJiYXJDaGFydE1lYXN1cmVMYXlvdXRJZCI6IjYwIiwibnVtYmVyT2ZMb3dWYWx1ZXMiOjUsIm51bWJlck9mSGlnaFZhbHVlcyI6NX0=</a></p>
<p>Can anyone suggest whether there are problematic characters here that would cause ASP.Net to be unhappy? I may end up resorting to query strings as that seems to work. But I&#8217;m still confused as to why this Url would not be accepted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vijay Santhanam</title>
		<link>http://lostechies.com/joshuaflanagan/2009/04/28/asp-net-400-bad-request-with-restricted-characters/#comment-39</link>
		<dc:creator>Vijay Santhanam</dc:creator>
		<pubDate>Wed, 27 May 2009 05:55:29 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2009/04/27/asp-net-400-bad-request-with-restricted-characters.aspx#comment-39</guid>
		<description>This feature is rather annoying. Wish there was more info about this issue by MS. Explaining why, and maybe a turn off feature if need be.

Also, a replacement string formatter would be nice</description>
		<content:encoded><![CDATA[<p>This feature is rather annoying. Wish there was more info about this issue by MS. Explaining why, and maybe a turn off feature if need be.</p>
<p>Also, a replacement string formatter would be nice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Flanagan</title>
		<link>http://lostechies.com/joshuaflanagan/2009/04/28/asp-net-400-bad-request-with-restricted-characters/#comment-38</link>
		<dc:creator>Joshua Flanagan</dc:creator>
		<pubDate>Fri, 15 May 2009 13:40:41 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2009/04/27/asp-net-400-bad-request-with-restricted-characters.aspx#comment-38</guid>
		<description>First, whether its a bug or not doesn&#039;t really matter to me. I&#039;m merely providing info on 2 different ways to deal with it (by changing the framework behavior, or working around it).
Second, its hard to call it a bug with MVC, since none of the MVC code is causing the problem - its in the underlying ASP.NET layer.
Third, I think I&#039;d classify it as &quot;default behavior that you disagree with&quot;. The framework was designed to operate in 2 modes  &quot;allow those characters in the path&quot;, or &quot;dont allow those characters in the path&quot;, with documented ways to change the mode. They chose &quot;dont allow&quot; as the default mode, but you can change it if you disagree (by following the KB articles linked in the Dirk.Net post mentioned above).
Fourth, yes its really annoying!</description>
		<content:encoded><![CDATA[<p>First, whether its a bug or not doesn&#8217;t really matter to me. I&#8217;m merely providing info on 2 different ways to deal with it (by changing the framework behavior, or working around it).<br />
Second, its hard to call it a bug with MVC, since none of the MVC code is causing the problem &#8211; its in the underlying ASP.NET layer.<br />
Third, I think I&#8217;d classify it as &#8220;default behavior that you disagree with&#8221;. The framework was designed to operate in 2 modes  &#8220;allow those characters in the path&#8221;, or &#8220;dont allow those characters in the path&#8221;, with documented ways to change the mode. They chose &#8220;dont allow&#8221; as the default mode, but you can change it if you disagree (by following the KB articles linked in the Dirk.Net post mentioned above).<br />
Fourth, yes its really annoying!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://lostechies.com/joshuaflanagan/2009/04/28/asp-net-400-bad-request-with-restricted-characters/#comment-37</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 15 May 2009 12:03:29 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2009/04/27/asp-net-400-bad-request-with-restricted-characters.aspx#comment-37</guid>
		<description>Totally agree with benb&#039;s assesment. 

We use custom URL rewriting in asp.net 2.0 (not MVC routing) precisely so we don&#039;t have to use ugly URLs like :

http://localhost/dovetailcrm/contacts/query?search=%25%20%25

This is a bug. For us a really really annoying one. 



</description>
		<content:encoded><![CDATA[<p>Totally agree with benb&#8217;s assesment. </p>
<p>We use custom URL rewriting in asp.net 2.0 (not MVC routing) precisely so we don&#8217;t have to use ugly URLs like :</p>
<p><a href="http://localhost/dovetailcrm/contacts/query?search=%25%20%25" rel="nofollow">http://localhost/dovetailcrm/contacts/query?search=%25%20%25</a></p>
<p>This is a bug. For us a really really annoying one. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: benb</title>
		<link>http://lostechies.com/joshuaflanagan/2009/04/28/asp-net-400-bad-request-with-restricted-characters/#comment-36</link>
		<dc:creator>benb</dc:creator>
		<pubDate>Tue, 28 Apr 2009 17:49:31 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2009/04/27/asp-net-400-bad-request-with-restricted-characters.aspx#comment-36</guid>
		<description>to me this is a bug. It is one I submitted last year for MVC and never has been resolved. The problem is, when one is trying to make a RESTful service (as an example), ALL valid characters as defined by the standard should be acceptable.

What I found is, basically any character that is not valid for a Windows file name causes this issue. With routing, this is a bug. Given we are not looking for a specific disk file, all protocol standard characters should be considered valid. When looking at something like the Yahoo! Boss API, with MVC or anything on ASP .NET, you would not be able to pass in the query in the same way? Why? This is not correct as it does not work the way it should and the way the standards say it should.</description>
		<content:encoded><![CDATA[<p>to me this is a bug. It is one I submitted last year for MVC and never has been resolved. The problem is, when one is trying to make a RESTful service (as an example), ALL valid characters as defined by the standard should be acceptable.</p>
<p>What I found is, basically any character that is not valid for a Windows file name causes this issue. With routing, this is a bug. Given we are not looking for a specific disk file, all protocol standard characters should be considered valid. When looking at something like the Yahoo! Boss API, with MVC or anything on ASP .NET, you would not be able to pass in the query in the same way? Why? This is not correct as it does not work the way it should and the way the standards say it should.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
