title: Drupal "HTTP request status Fails" error
body: <p>I am getting a drupal error on status report.</p>
  
  <p><strong>The Error:</strong></p>
  
  <blockquote>
    <p>HTTPRL - Core drupal_http_request() Your system or network
    configuration does not allow Drupal to access web pages. This could be
    due to your webserver configuration or PHP settings.</p>
  </blockquote>
  
  <p><strong>The Debug info:</strong></p>
  
  <pre><code>Array (
      [0] =&gt; Array (
              [0] =&gt; Array (
                      [count] =&gt; 1
                      [time] =&gt; 6770.18
                      [mode] =&gt; 2
                      [blocking] =&gt; FALSE
                      [url] =&gt; http://www.ihouseu.com/httprl_async_function_callback?count=1
                      [request] =&gt; Array (
                              [http://www.ihouseu.com/httprl_async_function_callback?count=1] =&gt; stdClass Object (
                                      [url] =&gt; http://www.ihouseu.com/httprl_async_function_callback?count=1
                                      [status] =&gt; Non-Blocking request sent out. Not waiting for the response.
                                      [code] =&gt; 0
                                      [chunk_size] =&gt; 1024
                                      [data] =&gt; 
                                      [request] =&gt; POST /httprl_async_function_callback?count=1 HTTP/1.0
  Host: www.ihouseu.com
  Connection: closed
  User-Agent: Drupal (+http://drupal.org/)
  Content-Type: application/x-www-form-urlencoded
  Content-Length: 554
  
  master_key=d77599a44350a426f3f0eae50fb9dd3d1aa16ea97d48d3262407db6af8f27e205e0416a5e9d44e515329261adf6267184a886e578848a38f70e3d4b3694cea59&amp;temp_key=httprl_a746459f3363a5ddf1f55c5361ada1c3e328930ce948cfe55fd4add3cd4d24302efe39ef588b333e7199c50956437c09c11e1f06e1128a4d5136a7e2c84bad05&amp;mode=0&amp;php_timeout=120&amp;function=httprl_lock_release&amp;args=YToxOntpOjA7czoxMzU6Imh0dHBybF9mZmE2NDc0ZDVjZmQwZDBmZjFhNzRlNWM3M2Q0ZTg3OWE1MDZkYTEwNDMwNzcyZmM1OTk3NTllNzA2ZTM0ZGM0YzJkYTQ4Y2MyNmQ2M2JmN2FjNWEzZjUxNjUxMjJkMGJlN2IzZjc1NzYwOWMzMTJhZmVjNmNkODNkOTM0Y2U4YSI7fQ%3D%3D
                                      [options] =&gt; Array (
                                              [data] =&gt; master_key=d77599a44350a426f3f0eae50fb9dd3d1aa16ea97d48d3262407db6af8f27e205e0416a5e9d44e515329261adf6267184a886e578848a38f70e3d4b3694cea59&amp;temp_key=httprl_a746459f3363a5ddf1f55c5361ada1c3e328930ce948cfe55fd4add3cd4d24302efe39ef588b333e7199c50956437c09c11e1f06e1128a4d5136a7e2c84bad05&amp;mode=0&amp;php_timeout=120&amp;function=httprl_lock_release&amp;args=YToxOntpOjA7czoxMzU6Imh0dHBybF9mZmE2NDc0ZDVjZmQwZDBmZjFhNzRlNWM3M2Q0ZTg3OWE1MDZkYTEwNDMwNzcyZmM1OTk3NTllNzA2ZTM0ZGM0YzJkYTQ4Y2MyNmQ2M2JmN2FjNWEzZjUxNjUxMjJkMGJlN2IzZjc1NzYwOWMzMTJhZmVjNmNkODNkOTM0Y2U4YSI7fQ%3D%3D
                                              [internal_states] =&gt; Array (
                                                      [background_function_return] =&gt; 
                                                      [background_function_args] =&gt; Array (
                                                              [0] =&gt; httprl_ffa6474d5cfd0d0ff1a74e5c73d4e879a506da10430772fc599759e706e34dc4c2da48cc26d63bf7ac5a3f5165122d0be7b3f757609c312afec6cd83d934ce8a
                                                          )
                                                  )
                                              [blocking] =&gt; 
                                              [method] =&gt; POST
                                              [timeout] =&gt; 6.99989199638
                                              [max_redirects] =&gt; 0
                                              [headers] =&gt; Array (
                                                      [Host] =&gt; www.ihouseu.com
                                                      [Connection] =&gt; closed
                                                      [User-Agent] =&gt; Drupal (+http://drupal.org/)
                                                      [Content-Type] =&gt; application/x-www-form-urlencoded
                                                      [Content-Length] =&gt; 554
                                                  )
                                              [lock_name] =&gt; httprl_a746459f3363a5ddf1f55c5361ada1c3e328930ce948cfe55fd4add3cd4d24302efe39ef588b333e7199c50956437c09c11e1f06e1128a4d5136a7e2c84bad05
                                              [dns_timeout] =&gt; 5
                                              [connect_timeout] =&gt; 30
                                              [ttfb_timeout] =&gt; 20
                                              [context] =&gt; 
                                              [secure_socket_transport] =&gt; ssl
                                              [version] =&gt; 1.0
                                              [referrer] =&gt; 
                                              [domain_connections] =&gt; 2
                                              [global_connections] =&gt; 128
                                              [global_timeout] =&gt; 120
                                              [chunk_size_read] =&gt; 32768
                                              [chunk_size_write] =&gt; 1024
                                              [async_connect] =&gt; 1
                                              [ping_db] =&gt; 20
                                              [data-input] =&gt; Array (
                                                      [master_key] =&gt; d77599a44350a426f3f0eae50fb9dd3d1aa16ea97d48d3262407db6af8f27e205e0416a5e9d44e515329261adf6267184a886e578848a38f70e3d4b3694cea59
                                                      [temp_key] =&gt; httprl_a746459f3363a5ddf1f55c5361ada1c3e328930ce948cfe55fd4add3cd4d24302efe39ef588b333e7199c50956437c09c11e1f06e1128a4d5136a7e2c84bad05
                                                      [mode] =&gt; 
                                                      [php_timeout] =&gt; 120
                                                      [function] =&gt; httprl_lock_release
                                                      [context] =&gt; Array (
                                                          )
                                                      [args] =&gt; YToxOntpOjA7czoxMzU6Imh0dHBybF9mZmE2NDc0ZDVjZmQwZDBmZjFhNzRlNWM3M2Q0ZTg3OWE1MDZkYTEwNDMwNzcyZmM1OTk3NTllNzA2ZTM0ZGM0YzJkYTQ4Y2MyNmQ2M2JmN2FjNWEzZjUxNjUxMjJkMGJlN2IzZjc1NzYwOWMzMTJhZmVjNmNkODNkOTM0Y2U4YSI7fQ==
                                                  )
                                          )
                                      [socket] =&gt; tcp://www.ihouseu.com:80
                                      [flags] =&gt; 6
                                      [uri] =&gt; Array (
                                              [scheme] =&gt; http
                                              [host] =&gt; www.ihouseu.com
                                              [path] =&gt; /httprl_async_function_callback
                                              [query] =&gt; count=1
                                          )
                                      [running_time] =&gt; 0.000108003616333
                                      [fp] =&gt; Resource id #2337
                                      [bytes_sent] =&gt; 0
                                  )
                          )
                  )
              [1] =&gt; Array (
                      [count] =&gt; 1
                      [time] =&gt; 7040.89
                      [mode] =&gt; 2
                      [blocking] =&gt; TRUE
                      [url] =&gt; http://www.ihouseu.com/httprl_async_function_callback?count=2
                      [request] =&gt; Array (
                          )
                  )
              [2] =&gt; Array (
                      [count] =&gt; 1
                      [time] =&gt; 6888.28
                      [mode] =&gt; 1
                      [blocking] =&gt; FALSE
                      [url] =&gt; http://www.ihouseu.com/httprl_async_function_callback?count=0
                      [request] =&gt; stdClass Object (
                              [__original_class_name__] =&gt; stdClass
                              [url] =&gt; http://www.ihouseu.com/httprl_async_function_callback?count=0
                              [status] =&gt; Done.
                              [code] =&gt; 200
                              [chunk_size] =&gt; 32768
                              [data] =&gt; 0=YTozOntzOjY6InJldHVybiI7TjtzOjQ6ImFyZ3MiO2E6MTp7aTowO3M6MTM1OiJodHRwcmxfNTQ5ODRlMjk3NmRhZTZkNjYxZWRhOTRjNTg0ZmUyNzI0YjQzMGFlNDVmZjFiYTU2YmVkNDdmZTRhYzhjMDZlZDhhZjBkN2EyN2Q4NzkyNGIyZGYyNmJhNjdjZmI2N2FlOTJhYjAyMTgxNGJiNWFhMDBmMGI4NTIyNmY4MDViMzkiO31zOjc6InByaW50ZWQiO3M6MDoiIjt9
                              [request] =&gt; POST /httprl_async_function_callback?count=0 HTTP/1.0
  Host: www.ihouseu.com
  Connection: closed
  Content-Type: application/x-www-form-urlencoded
  Content-Length: 552
  User-Agent: Drupal (+http://drupal.org/)
  
  master_key=d77599a44350a426f3f0eae50fb9dd3d1aa16ea97d48d3262407db6af8f27e205e0416a5e9d44e515329261adf6267184a886e578848a38f70e3d4b3694cea59&amp;temp_key=httprl_5e764a8fdf5fd0cc0765d865c11f4cd16ec4f62e26cbcda848fc9fddd3ea81d19036e570ef3efa9123606f0a8aa03d96f71a1e6ae8b3341da303a5a1a1e6be1d&amp;mode=1&amp;php_timeout=7&amp;function=httprl_lock_release&amp;args=YToxOntpOjA7czoxMzU6Imh0dHBybF81NDk4NGUyOTc2ZGFlNmQ2NjFlZGE5NGM1ODRmZTI3MjRiNDMwYWU0NWZmMWJhNTZiZWQ0N2ZlNGFjOGMwNmVkOGFmMGQ3YTI3ZDg3OTI0YjJkZjI2YmE2N2NmYjY3YWU5MmFiMDIxODE0YmI1YWEwMGYwYjg1MjI2ZjgwNWIzOSI7fQ%3D%3D
                              [options] =&gt; Array (
                                      [data] =&gt; master_key=d77599a44350a426f3f0eae50fb9dd3d1aa16ea97d48d3262407db6af8f27e205e0416a5e9d44e515329261adf6267184a886e578848a38f70e3d4b3694cea59&amp;temp_key=httprl_5e764a8fdf5fd0cc0765d865c11f4cd16ec4f62e26cbcda848fc9fddd3ea81d19036e570ef3efa9123606f0a8aa03d96f71a1e6ae8b3341da303a5a1a1e6be1d&amp;mode=1&amp;php_timeout=7&amp;function=httprl_lock_release&amp;args=YToxOntpOjA7czoxMzU6Imh0dHBybF81NDk4NGUyOTc2ZGFlNmQ2NjFlZGE5NGM1ODRmZTI3MjRiNDMwYWU0NWZmMWJhNTZiZWQ0N2ZlNGFjOGMwNmVkOGFmMGQ3YTI3ZDg3OTI0YjJkZjI2YmE2N2NmYjY3YWU5MmFiMDIxODE0YmI1YWEwMGYwYjg1MjI2ZjgwNWIzOSI7fQ%3D%3D
                                      [method] =&gt; POST
                                      [headers] =&gt; Array (
                                              [Host] =&gt; www.ihouseu.com
                                              [Connection] =&gt; closed
                                              [Content-Type] =&gt; application/x-www-form-urlencoded
                                              [Content-Length] =&gt; 552
                                              [User-Agent] =&gt; Drupal (+http://drupal.org/)
                                          )
                                      [timeout] =&gt; 6.86747908592
                                      [max_redirects] =&gt; 0
                                      [data-input] =&gt; Array (
                                              [master_key] =&gt; d77599a44350a426f3f0eae50fb9dd3d1aa16ea97d48d3262407db6af8f27e205e0416a5e9d44e515329261adf6267184a886e578848a38f70e3d4b3694cea59
                                              [temp_key] =&gt; httprl_5e764a8fdf5fd0cc0765d865c11f4cd16ec4f62e26cbcda848fc9fddd3ea81d19036e570ef3efa9123606f0a8aa03d96f71a1e6ae8b3341da303a5a1a1e6be1d
                                              [mode] =&gt; 1
                                              [php_timeout] =&gt; 7
                                              [function] =&gt; httprl_lock_release
                                              [args] =&gt; YToxOntpOjA7czoxMzU6Imh0dHBybF81NDk4NGUyOTc2ZGFlNmQ2NjFlZGE5NGM1ODRmZTI3MjRiNDMwYWU0NWZmMWJhNTZiZWQ0N2ZlNGFjOGMwNmVkOGFmMGQ3YTI3ZDg3OTI0YjJkZjI2YmE2N2NmYjY3YWU5MmFiMDIxODE0YmI1YWEwMGYwYjg1MjI2ZjgwNWIzOSI7fQ==
                                          )
                                      [dns_timeout] =&gt; 5
                                      [connect_timeout] =&gt; 30
                                      [ttfb_timeout] =&gt; 20
                                      [context] =&gt; 
                                      [secure_socket_transport] =&gt; ssl
                                      [blocking] =&gt; 1
                                      [version] =&gt; 1.0
                                      [referrer] =&gt; 
                                      [domain_connections] =&gt; 2
                                      [global_connections] =&gt; 128
                                      [global_timeout] =&gt; 120
                                      [chunk_size_read] =&gt; 32768
                                      [chunk_size_write] =&gt; 1024
                                      [async_connect] =&gt; 1
                                      [ping_db] =&gt; 20
                                  )
                              [socket] =&gt; tcp://www.ihouseu.com:80
                              [flags] =&gt; 6
                              [uri] =&gt; Array (
                                      [scheme] =&gt; http
                                      [host] =&gt; www.ihouseu.com
                                      [path] =&gt; /httprl_async_function_callback
                                      [query] =&gt; count=0
                                  )
                              [running_time] =&gt; 0.132520914078
                              [fp] =&gt; Resource id #2339
                              [bytes_sent] =&gt; 764
                              [time_to_first_byte] =&gt; 0.132577896118
                              [protocol] =&gt; HTTP/1.1
                              [status_message] =&gt; OK
                              [headers] =&gt; Array (
                                      [date] =&gt; Sun, 26 Apr 2015 21:03:54 GMT
                                      [server] =&gt; Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 mod_fastcgi/2.4.6
                                      [x-powered-by] =&gt; PHP/5.4.39
                                      [x-drupal-cache] =&gt; MISS
                                      [expires] =&gt; Sun, 19 Nov 1978 05:00:00 GMT
                                      [cache-control] =&gt; no-cache, must-revalidate, post-check=0, pre-check=0
                                      [connection] =&gt; close
                                      [content-type] =&gt; application/x-www-form-urlencoded
                                  )
                          )
                  )
          )
      [1] =&gt; TRUE
  )
  </code></pre>
  
  <p>What I tried:</p>
  
  <ul>
  <li>Added a hostname entry on /etc/hosts file for my site.</li>
  <li>Added these lines on my settings.php:</li>
  </ul>
  
  <p><code>$conf['drupal_http_request_fails'] = FALSE;&lt;br&gt;</code></p>
  
  <p><code>$conf['assume_http_request_works'] = TRUE;</code></p>
  
  <p><strong>System Details:</strong></p>
  
  <p>OS: Centos 6.6
  Server Software: Cpanel/WHM
  PHP version: 5.4.39
  Apache version: 2.2.29
  Drupal Version: 7.36</p>
  
  <p><strong>On php.ini</strong> </p>
  
  <blockquote>
    <p>allow_url_fopen = On <br>
    allow_url_include = On <br>
    disable_functions =  none <br></p>
  </blockquote>
  
  <p>Tried clearing cache every time does not work .
  And php handler is php-fpm .</p>
  
  <p>Looking forward for a solution guys !
  Thanks</p>