note 82052 deleted from http.request.options by sobak

From: Date: Sun, 04 Dec 2016 07:26:32 +0000
Subject: note 82052 deleted from http.request.options by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208103@lists.php.net to get a copy of this message
Note Submitter: dav7 dot net at php (reverse) ---- 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

« previous php.notes (#208103) next »