blob: 46359738f3f085a102fda0d757a9447efa584c1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
namespace phinde;
class HttpRequest extends \HTTP_Request2
{
public function __construct($url = null, $method = 'GET')
{
parent::__construct($url, $method);
$this->setConfig('follow_redirects', true);
$this->setConfig('connect_timeout', 5);
$this->setConfig('timeout', 10);
$this->setConfig('ssl_verify_peer', false);
$this->setHeader('user-agent', 'phinde/bot');
}
}
?>
|