title: POST works on Postman, but not with CURL
body: <p>Using postman, I send a POST to (my username and password are filled in): </p>
  
  <pre><code>https://ssl.reddit.com/api/login?api_type=json&amp;user=XXX&amp;passwd=XXX&amp;rem=True 
  </code></pre>
  
  <p>I receive a response containing a modhash and a cookie.  Then, I send a second POST with postman to:</p>
  
  <pre><code>https://en.reddit.com/api/comment?api_type=json&amp;text=7/1/15TEST&amp;thing_id=t1_csa56v2
  </code></pre>
  
  <p>with the following headers (XXX has been confirmed and filled in):</p>
  
  <pre><code>User-Agent: XXX
  Cookie: reddit_session=XXX
  X-Modhash: XXX
  </code></pre>
  
  <p>This provides the correct response, but when I try to do the same thing with CURL in my PHP, it responds with USER_REQUIRED.  Once again, I have confirmed that the cookie and modhash are correct.</p>
  
  <pre><code>$name = 't1_csa56v2';
  $text = 'NEWEST TEST 7/2/15 12:20am';
  $url = 'https://en.reddit.com/api/comment';
  
  $modhash = 'XXX';
  $cookie = 'XXX';
  
  $headerFields = array (
      'User-Agent' =&gt; 'XXX',
      'Cookie' =&gt; 'reddit_session='.$cookie,
      'X-Modhash' =&gt; $modhash 
  );
  
  $postFields = array (
      'api_type' =&gt; 'json',
      'text' =&gt; $text,
      'thing_id' =&gt; $name
  );
  
  
  $field_string = http_build_query($postFields);
  
  $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_HTTPHEADER, $headerFields);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_POST, 3);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $field_string);
  $response = curl_exec($ch);
  </code></pre>
  
  <p>What am I doing wrong?  Why can't I get the same response?</p>
  
  <p>Screenshot of POSTMAN:
  <img src="https://i.stack.imgur.com/PHWYJ.jpg" alt="Screenshot of POSTMAN"></p>