title: Invalid character found in the request target in spring boot
body: <p>My application is started with java -jar with version 1.5.6.RELEASE of spring boot.<br />
  The content of one of my request has the character "{".When it is sended to server the following exception is raised:</p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: Invalid character found in the
    request target. The valid characters are defined in RFC 7230 and RFC
    3986  at
    org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:472)
      at
    org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:683)
      at
    org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      at
    org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
      at
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
      at
    org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:745)</p>
  </blockquote>
  
  <p>Where is wrong?
  How do I fix it?</p>
  
  <p>EDIT1:<br />
  My rest is like this:</p>
  
  <pre><code>var jsonData = {
                      id: $("#hiddenId").val(),
                      permitNumber: $("#txtPermitNumber").val(),
                      permitToDate: $("#txtPermitToDate").val()
                 }
  document.location = restUrl + "/print?reportParams= " + JSON.stringify(jsonData);
  </code></pre>