You should specify the first argument (int $method) using one of the Predefined HTTP request method constants specified here:
http://www.php.net/manual/en/http.constants.php
For example:
<?php
http_request (HTTP_METH_PUT, 'www.example.com');
?>
(PECL pecl_http >= 1.0.0)
http_request — Perform custom request
$method
, string $url
[, string $body
[, array $options
[, array &$info
]]] )Performs a custom HTTP request on the supplied url.
Vedeți lista întreagă de opțiunile interpelării.
method
Request method
url
URL
body
Request body
options
info
Întoarce răspunsul(urile) HTTP ca string în
caz de succes, sau FALSE
în caz de eșec.
You should specify the first argument (int $method) using one of the Predefined HTTP request method constants specified here:
http://www.php.net/manual/en/http.constants.php
For example:
<?php
http_request (HTTP_METH_PUT, 'www.example.com');
?>