public setHTTPProtocolVersion($http_protocol_version)
$http_protocol_version | int | One of the PHPCrawlerHTTPProtocols-constants, or 1 -> HTTP 1.0 2 -> HTTP 1.1 (default) |
bool |
Example:// Lets the crawler use HTTP 1.1 requests
$crawler->setHTTPProtocolVersion(PHPCrawlerHTTPProtocols::HTTP_1_1);
Since phpcrawl 0.82, HTTP 1.1 is the default protocol.