note 107861 deleted from http.request.options by sobak

From: Date: Sun, 04 Dec 2016 07:26:34 +0000
Subject: note 107861 deleted from http.request.options by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208104@lists.php.net to get a copy of this message
Note Submitter: sandeepone at gmail dot com ---- If someone looking how to use in OOP's context: $options = array( 'useragent' => "Firefox (+http://www.firefox.org)", // who am i 'connecttimeout' => 120, // timeout on connect 'timeout' => 120, // timeout on response 'redirect' => 10, // stop after 10 redirects 'referer' => "http://www.google.com" ); $request = new HttpRequest('http://example.com'); $request->setOptions($options); $request->send();

« previous php.notes (#208104) next »