blob: e68bd84de481c363ea4b9567f3b91c392698ac22 (
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)
{
parent::__construct($url);
$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');
}
}
?>
|