panjiwa10028 / solr-php-client

Automatically exported from code.google.com/p/solr-php-client
Other
0 stars 0 forks source link

ping fucntion uses method HEAD in stream_context_create #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Stream_context_create in 'ping' function uses method 'HEAD' which is not
allowed (only GET and POST are).

                $context = stream_context_create(
                        array(
                                'http' => array(
                                        'method' => 'HEAD',
                                        'timeout' => $timeout
                                )
                        )
                );

http://nl.php.net/manual/en/context.http.php

Original issue reported on code.google.com by Tuurlijk...@gmail.com on 28 Dec 2009 at 11:17

GoogleCodeExporter commented 8 years ago
In that documentation:

"GET, POST, or any other HTTP method supported by the remote server."

Is your server not responding to HEAD requests? The purpose of using a HEAD 
request is that all I really care 
about is the status code, I don't want to have to wait for the full body of the 
request to return.  

I'm setting this to wontfix, but if  you can help me reproduce a problem you're 
having I'll revisit it. 

Original comment by donovan....@gmail.com on 22 Mar 2010 at 11:18