Allow setting custom CURL options
ox-michaelradionov opened this issue · comments
My website is running on local server localhost:3000
.
I've also configured prerender server to run on localhost:4000
.
When I make a test request to http://localhost:3000?_escaped_fragment_
I get an error:
ConnectException in CurlFactory.php line 186:
cURL error 7: Failed to connect to localhost port 4000: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
In this SO q/a is explained why this happens - CURL rejects unusual ports. It can be fixed by setting CURLOPT_FOLLOWLOCATION
to 1
, but as I can see there is no option in middleware to pass custom options to Guzzle.
I wonder if it is possible to add an option to provide custom options to Guzzle. Thanks!
Sorry, I've solved my issue. It was not a Guzzle or Curl issue at all.
It was so stupid of me trying to make a request from Vagrant machine to a host machine, which do not see each others ports.