note 82052 added to http.request.options
| From: | (reverse) | Date: | Wed, 26 Mar 2008 01:52:14 +0000 |
| Subject: | note 82052 added to http.request.options | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137584@lists.php.net to get a copy of this message | ||
If anyone doesn't understand the purpose of these values and is scratching their head,
they're all array indexes, and are used as the $option parameter to the various HTTP functions
documented in this section. For example:
<?php
$body = http_get('http://example.com/private_area/',
array(httpauth => 'username:password'));
print $body;
?>
This only had me "...huh?!" for a little while, but might have others confused for longer
as the fact that these are what they are isn't clearly printed anywhere... to find out that
these did what they say they do was a guessing game for me even.
-dav7
----
Server IP: 117.104.160.194
Probable Submitter: 121.223.223.219
----
Manual Page -- http://www.php.net/manual/en/http.request.options.php
Edit -- https://master.php.net/note/edit/82052
Del: integrated -- https://master.php.net/note/delete/82052/integrated
Del: useless -- https://master.php.net/note/delete/82052/useless
Del: bad code -- https://master.php.net/note/delete/82052/bad+code
Del: spam -- https://master.php.net/note/delete/82052/spam
Del: non-english -- https://master.php.net/note/delete/82052/non-english
Del: in docs -- https://master.php.net/note/delete/82052/in+docs
Del: other reasons-- https://master.php.net/note/delete/82052
Reject -- https://master.php.net/note/reject/82052
Search -- https://master.php.net/manage/user-notes.php