Closed Shotman closed 9 months ago
Can you share a bit more on the exact PHP code that you are executing? I wonder if the proxy might reject it because of size or a timeout?
Unfortunately have never used Elastica with a proxy in between.
I managed to make it work with a proxy, nothing to do with elastica or FOSElastica themselves just kind of a stange curl config requirement :
curl:
!php/const \CURLOPT_NOPROXY: ''
!php/const \CURLOPT_PROXY: ''
Those 2 options ARE required to make Elastica ignore the proxy, the NO_PROXY one alone isn't enough, no idea why but it works now
I have a server that must use a proxy per company policy When using curl in command line with :
curl --noproxy '*' -X PUT -u usr:pass [IP]:9200/toto
everything works as expected. But with the configuration onFOSElasticaBundle
I get a
Wich is
So why does it work with basic command line but not using the PHP HTTP client ?
Here is some documentation on the request and response :