Do not use STDOUT and STDERR constants
[phinde.git] / src / phinde / HttpRequest.php
1 <?php
2 namespace phinde;
3
4 class HttpRequest extends \HTTP_Request2
5 {
6     public function __construct($url = null, $method = 'GET')
7     {
8         parent::__construct($url, $method);
9         $this->setConfig('follow_redirects', true);
10         $this->setConfig('connect_timeout', 5);
11         $this->setConfig('timeout', 10);
12         $this->setConfig('ssl_verify_peer', false);
13         $this->setHeader('user-agent', 'phinde/bot');
14     }
15 }
16 ?>