title: Jmeter Http proxy server throws java.net.URISyntaxException: Illegal character in query at index error
body: <p>I am trying to record my web client-server communication using Jmeter. After the Jmeter and browser are configured for recording the application. When a post request is made from client to server, the following error happens. Any idea how to encode the URL which is being recorded?</p>
  
  <pre><code>java.net.URISyntaxException: Illegal character in query at index 238: http://localhost:8080/updateBoxCorrectionInstantly?examKey=16-17-%3ECBSE-%3ETERM%20I-%3ESA1-%3EVI-%3EScience-%3EA&amp;studentName=AMOGH%20YOGESH%20KALE&amp;studentRollno=3&amp;studentND=-1&amp;sheetName=cb8e806b32e9d670698655e0d2da10e3_img001210.jpg&amp;box={%22$center%22:%22(66.0,%202253.0)%22,%22$conf%22:%22H%22,%22$corrected%22:true,%22$isAdminCorrected%22:true,%22$correction%22:%22-%22,%22$isDrawn%22:false,%22coords%22:[36,2214,96,2292],%22isTitle%22:false,%22pos%22:%22-%22,%22pred%22:%22-%22,%22boxTypeId%22:0,%22score%22:1}
  at java.net.URI$Parser.fail(URI.java:2829)
  at java.net.URI$Parser.checkChars(URI.java:3002)
  at java.net.URI$Parser.parseHierarchical(URI.java:3092)
  at java.net.URI$Parser.parse(URI.java:3034)
  at java.net.URI.&lt;init&gt;(URI.java:595)
  at java.net.URL.toURI(URL.java:949)
  at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:232)
  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1075)
  at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:212)
  </code></pre>