X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=docs%2Ffunctions.html;fp=docs%2Ffunctions.html;h=148840804190bed8a03cf26a4e58d0f17ba34391;hp=02b48406b0cbcfd56f95dc0ab6bb3dd104e4d8f7;hb=6086d2a97b6959531650c886b10dc814ad2392f9;hpb=fe816730b2c3be90f5a61b80cb4e63b7b303d020 diff --git a/docs/functions.html b/docs/functions.html index 02b4840..1488408 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -386,7 +386,12 @@ See http_get() for a full list of available options.

Expects the second parameter to be a resource referencing an already
opened stream, from which the data to upload should be read.
See http_get() for a full list of available options.

-

Returns the HTTP response(s) as string on success. or FALSE on failure.

+

Returns the HTTP response(s) as string on success, or FALSE on failure.

+

string http_put_data(string url, string data[, array options[, array &info]])

+

Performs an HTTP PUT request on the supplied url.

+

Expects the second parameter to be a string containing the data to upload.
+See http_get() for a full list of available options.

+

Returns the HTTP response(s) as string on success, or FALSE on failure.

int http_request_method_register(string method)

Register a custom request method.

Expects a string parameter containing the request method name to register.

@@ -777,6 +782,22 @@ If the parameter is empty or omitted the put file will be unset.

string HttpRequest::getPutFile()

Get previously set put file.

Returns a string containing the path to the currently set put file.

+

bool HttpRequest::setPutData([string put_data])

+

Set PUT data to send, overwriting previously set PUT data.
+Affects only PUT requests.
+Only either PUT data or PUT file can be used for each request.
+PUT data has higher precedence and will be used even if a PUT
+file is set.

+

Accepts a string as parameter containing the data to upload.

+

Returns TRUE on success, or FALSE on failure.

+

bool HttpRequest::addPutData(string put_data)

+

Add PUT data, leaving previously set PUT data unchanged.
+Affects only PUT requests.

+

Expects a string as parameter containing the data to concatenate.

+

Returns TRUE on success, or FALSE on failure.

+

string HttpRequest::getPutData()

+

Get previously set PUT data.

+

Returns a string containing the currently set raw post data.

array HttpRequest::getResponseData()

Get all response data after the request has been sent.

Returns an associative array with the key "headers" containing an associative
@@ -1171,6 +1192,8 @@ http.cache_log is set.

  • http_put_stream
  • +
  • http_put_data +
  • http_request_method_register
  • http_request_method_unregister @@ -1295,6 +1318,9 @@ http.cache_log is set.

  • HttpRequest::getPostFiles()
  • HttpRequest::setPutFile()
  • HttpRequest::getPutFile()
  • +
  • HttpRequest::setPutData()
  • +
  • HttpRequest::addPutData()
  • +
  • HttpRequest::getPutData()
  • HttpRequest::getResponseData()
  • HttpRequest::getResponseHeader()
  • HttpRequest::getResponseCookies()
  • @@ -1369,7 +1395,7 @@ http.cache_log is set.

    -

    Generated at: Mon, 20 Feb 2006 17:41:32 +0100

    +

    Generated at: Fri, 24 Feb 2006 21:29:29 +0100