title: Getting HTTP/1.0 400 Bad Request in JMeter
body: <p>I have Recorded my PHP/JSON site using JMeter. I tried to run the recorded script and got error message for most of the sampler.</p>
  
  <p>I tried to change the POST URL as <code>"manufactureradmin/ticketsreportcontroller/getServiceAgency"</code> it was success but i am getting the wrong Response data.</p>
  
  <p><strong>Sampler Request</strong></p>
  
  <p><code>Thread Name: Thread Group 1-1
  Sample Start: 2017-04-28 01:08:52 IST
  Load time: 106
  Connect Time: 0
  Latency: 106
  Size in bytes: 493
  Sent bytes:782
  Headers size in bytes: 260
  Body size in bytes: 233
  Sample Count: 1
  Error Count: 1
  Data type ("text"|"bin"|""): text
  Response code: 400
  Response message: Bad Request</code></p>
  
  <p><code>Response headers:
  HTTP/1.0 400 Bad Request
  Date: Thu, 27 Apr 2017 19:38:52 GMT
  Server: Apache/2.4.25 (Amazon) PHP/7.0.14
  X-Powered-By: PHP/7.0.14
  0: HTTP/1.1 400 Bad Request
  Cache-Control: no-cache
  Content-Length: 233
  Connection: close
  Content-Type: application/json</code></p>
  
  <p><code>HTTPSampleResult fields:
  ContentType: application/json
  DataEncoding: null</code></p>
  
  <p><strong>Request</strong></p>
  
  <p><code>POST http://assist-qa.innothinkglobal.com/api/public/manufactureradmin/ticketsreportcontroller/getServiceAgency</code></p>
  
  <p>POST data:</p>
  
  <p>Cookie Data:
  <code>laravel_session=eyJpdiI6IjVjY3lkcmRSME83eGVWRmlCcHIrT2c9PSIsInZhbHVlIjoiM3FMeXRSQ1RndzU0ZmRnOFBpd21JN0FONU9TNlE4d1VYcCtoZjJvdGNBWmhoRUNcL2phU0tQR29yZXpKaHFmcDNlYUk0QUM0VlpHT3EyZ2JoeEJiNXB3PT0iLCJtYWMiOiI1ODgyMGEwMTE0ZTYyY2VhMGY4MWM5MDg4MzM3YmNlMzA3Mzc0YzEyNjFkNzUxY2YwNjA1ZGE0OTFhMmYzNmRhIn0%3D</code></p>
  
  <p><code>Request Headers:
  Connection: keep-alive
  Referer: http://assist-qa.innothinkglobal.com/manufactureradmin/
  Accept-Language: en-US,en;q=0.5
  Accept-Encoding: gzip, deflate
  User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
  Accept: application/json, text/plain, */*
  Content-Type: application/x-www-form-urlencoded
  Content-Length: 0
  Host: assist-qa.innothinkglobal.com</code></p>
  
  <p><strong>Response Data</strong></p>
  
  <p><code>{"error":"invalid_request","error_description":"The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the \"access token\" parameter."}</code></p>