Method: PHPCrawler::setHTTPProtocolVersion()



Sets the HTTP protocol version the crawler should use for requests
Signature:

public setHTTPProtocolVersion($http_protocol_version)

Parameters:

$http_protocol_version int One of the PHPCrawlerHTTPProtocols-constants, or
1 -> HTTP 1.0
2 -> HTTP 1.1 (default)

Returns:

bool 

Description:

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.