Setting proxy in Goutte
问题 I've tried using Guzzle's docs to set proxy but it's not working. The official Github page for Goutte is pretty dead so can't find anything there. Anyone know how to set a proxy? This is what I've tried: $client = new Client(); $client->setHeader('User-Agent', $user_agent); $crawler = $client->request('GET', $request, ['proxy' => $proxy]); 回答1: You thinking rigth, but in Goutte\Client::doRequest(), when create Guzzle client $guzzleRequest = $this->getClient()->createRequest( $request-