From 81393f5f14aabce6fb7fe1c2ff6412813edcdb79 Mon Sep 17 00:00:00 2001
From: Michael Wallner
- redirect: - lastmodified: int, timestamp for If-(Un)Modified-Since header
- timeout: int, seconds the request may take
- connecttimeout: int, seconds the connect may take
- - onprogress: mixed, progress callback
- - ondebug: mixed, debug callback
The optional third parameter will be filled with some additional information
+ - onprogress: mixed, progress callback
The optional third parameter will be filled with some additional information
in form af an associative array, if supplied, like the following example:
<?php
array (
'effective_url' => 'http://localhost',
'response_code' => 403,
'total_time' => 0.017,
'namelookup_time' => 0.013,
'connect_time' => 0.014,
'pretransfer_time' => 0.014,
'size_upload' => 0,
'size_download' => 202,
'speed_download' => 11882,
'speed_upload' => 0,
'header_size' => 145,
'request_size' => 62,
'ssl_verifyresult' => 0,
'filetime' => -1,
'content_length_download' => 202,
'content_length_upload' => 0,
'starttransfer_time' => 0.017,
'content_type' => 'text/html; charset=iso-8859-1',
'redirect_time' => 0,
'redirect_count' => 0,
'private' => '',
'http_connectcode' => 0,
'httpauth_avail' => 0,
'proxyauth_avail' => 0,
)
?>
@@ -410,6 +409,8 @@ Affects only PUT requests. See http_get() for a full list of returned info.HttpMessage HttpRequest::getResponseMessage()
Get the full response as HttpMessage object.
+HttpMessage HttpRequest::getRequestMessage()
+Get sent HTTP message.
bool HttpRequest::send()
Send the HTTP request.
@@ -541,7 +542,7 @@ Example:
-Generated at: Mon, 25 Jul 2005 14:47:50 +0200
+Generated at: Mon, 01 Aug 2005 09:46:36 +0200