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');
?>
http_request
(PECL pecl_http >= 1.0.0)
http_request — 独自のリクエストを実行する
説明
string http_request
( int
$method
, string $url
[, string $body
[, array $options
[, array &$info
]]] )指定した url に対して独自の HTTP リクエストを実行します。
リクエストのオプション を参照ください。
返り値
成功した場合は HTTP レスポンスを文字列で、失敗した場合は FALSE を返します。
Dan
05-Jan-2012 11:28
halfcountplus at intergate dot com
10-Jun-2010 06:11
method arg is a define, eg "POST"
You need to install pecl_http to use this.
