title: Error Redirection to restful with special chars
body: <p>When I redirect using GET method 
        $uid=urlencode($uid);
        header(Location: "<a href="http://www.example.com/teldom.me.jersey/index.html?userid=" rel="nofollow">http://www.example.com/teldom.me.jersey/index.html?userid=</a>$uid&amp;lang=$lang");'</p>
  
  <p>to java restful service runnig in tomcat with url encoded special chars, a browser display:</p>
  
  <pre><code>The requested URL /teldom.me.jersey/rest/conf/EBo6Fp3Od00urp6TIF/3gGcrsg== was not found on this server
  </code></pre>
  
  <p>Apache Error log</p>
  
  <pre><code>[Sat Nov 23 00:13:02 2013] [error] [client xx.yy.65.87] File does not exist: /home/bmil/Dokumenti/webapps/cdn-cgi, referer: http://www.example.com/teldom.me.jersey/index.html?userid=EBo6Fp3Od00urp6TIF%2F3gGcrsg%3D%3D
  </code></pre>
  
  <p>In javascript I send ajax request to restful service using</p>
  
  <pre><code>http('POST', submitTo, ajax_response, document.form1); 
  </code></pre>
  
  <p>This is a ColdFusion API for AJAX.  (v 2.6.0)</p>
  
  <p>The problem is when ajax  send request with special html chars %2F to Tomcat</p>
  
  <p>Following is from tomcat localhost access log file:</p>
  
  <pre><code>xx.yy.65.87 - - [23/Nov/2013:23:17:14 +0100] "GET /teldom.me.jersey/index.html?userid=EBo6Fp3Od00urp6TIF%2F3gGcrsg%3D%3D&amp;lang= HTTP/1.1" 304 -
  
  xx.yy.65.87 - - [23/Nov/2013:23:09:38 +0100] "POST /teldom.me.jersey/rest/conf/E6iKbMC8jTFz4JifHDdqogj3?nocache=1385244552675 HTTP/1.1" 200 288
  8
  </code></pre>