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 — Realizar una petición personalizada
$method
, string $url
[, string $body
[, array $options
[, array &$info
]]] )Realiza sobre la url facilitada una petición HTTP personalizada.
Vea la lista completa de opciones de peticiones.
method
Método de petición
url
URL
body
Contenido de la petición
options
info
Returns the HTTP response(s) as string on
success, or FALSE
on failure.
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');
?>