title: Curl PHP http_code says 404 but browser says it's 200
body: <p><strong>I found out why this was happening, check my answer</strong></p>
  
  <p>This is the only domain that this happens on, I'm running curl_multi on a bunch of URLs, this one comes back with 404 http_code <a href="http://www.breakingnews.com" rel="nofollow">http://www.breakingnews.com</a></p>
  
  <p>But when I visit it in the browser it's 200OK (takes a while to load) and doesn't even look like a redirect.</p>
  
  <p>Anyone know what's up? Is this a common problem</p>
  
  <p>here's a var_dump:</p>
  
  <pre><code> ["info"]=&gt; array(22) { ["url"]=&gt; string(27) "http://www.breakingnews.com" ["content_type"]=&gt; string(24) "text/html; charset=utf-8" ["http_code"]=&gt; int(404) ["header_size"]=&gt; int(337) ["request_size"]=&gt; int(128) ["filetime"]=&gt; int(-1) ["ssl_verify_result"]=&gt; int(0) ["redirect_count"]=&gt; int(0) ["total_time"]=&gt; float(1.152229) ["namelookup_time"]=&gt; float(0.001261) ["connect_time"]=&gt; float(0.020121) ["pretransfer_time"]=&gt; float(0.020179) ["size_upload"]=&gt; float(0) ["size_download"]=&gt; float(9755) ["speed_download"]=&gt; float(8466) ["speed_upload"]=&gt; float(0) ["download_content_length"]=&gt; float(-1) ["upload_content_length"]=&gt; float(0) ["starttransfer_time"]=&gt; float(1.133522) ["redirect_time"]=&gt; float(0) ["certinfo"]=&gt; array(0) { } ["redirect_url"]=&gt; string(0) "" } ["error"]=&gt; string(0) ""
  </code></pre>
  
  <p><strike>UPDATE:
  This actually looks like a php bug with curl_setopt($ch, CURLOPT_NOBODY, true);
  <a href="https://bugs.php.net/bug.php?id=39611" rel="nofollow">https://bugs.php.net/bug.php?id=39611</a></strike></p>
  
  <p>EDIT: It's not a bug.</p>