title: Request type not being set in non gui mode in jmeter
body: <p>I am running a test in jmeter, when I run it in GUI mode, it runs absolutely fine, but when I run it in non GUI mode then the HTTP request type is not being set. The HTTP request type should be either GET or POST depending on the sampler configuration but its coming out as null and as a result the response is also blank. </p>
  
  <p>I run my tests in non GUI mode with the following command</p>
  
  <pre><code>jmeter -n -p user.properties -t submission_test/submission_test.jmx -l submission_test/results.jtl
  </code></pre>
  
  <p>Can anyone help me understand what I am doing wrong in this.</p>
  
  <p><strong>Update</strong> Adding more information
  Below is screen shot of one of the sampler</p>
  
  <p><img src="https://i.stack.imgur.com/wUmSu.png" alt="Sampler Request"></p>
  
  <p>This the Sampler Request according to the logs</p>
  
  <pre><code>Thread Name: Thread Group 1-2
  Sample Start: 2014-02-19 11:25:45 IST
  Load time: 349
  Latency: 136
  Size in bytes: 47330
  Sample Count: 1
  Error Count: 0
  Response code: 200
  Response message: OK
  
  Response headers:
  
  
  HTTPSampleResult fields:
  ContentType: 
  DataEncoding: null
  </code></pre>
  
  <p>This is the actual request</p>
  
  <pre><code>null http://www.hackerearth.com/load-testing/
  
  [no cookies]
  
  Request Headers:
  </code></pre>
  
  <p>Ideally cookies should have been set in this as I am using a HTTP Cookie Manager.
  The Response Data tab contains nothing.</p>
  
  <p>This is what the log looks like <a href="http://pastebin.com/4hDx4rFe" rel="nofollow noreferrer">http://pastebin.com/4hDx4rFe</a></p>
  
  <p>HTTP Request Default config is </p>
  
  <p><img src="https://i.stack.imgur.com/QkRKZ.png" alt="HTTP Request Default"></p>
  
  <p><strong>Solution:</strong><br>
  The problem was occurring because my version of jmeter was 2.3.4 where as the latest version is 2.11. I had installed jmeter using <code>apt-get install</code> so if you are facing the same issue then the problem will be resolved if you upgrade.</p>