-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add the possibility to change the request method #1441
Comments
Can you share some details on why GET requests do not work with proxies? Because if that is the case, there are many other requests where this becomes an issue I would think. |
Because in the HTTP Transport, you are setting |
Thanks for the details. I'm ok with adding this option. Can you open a PR? In case the proxy is under your control, I think the proxy should be configured accordingly. But I can see the issue in case the proxy is not under your control. I wonder what the proxy is that does not support it? |
@stefpe I just stumbled over this one: elastic/elasticsearch#28342 It seems the official high level client moved to POST, so I wonder if we should make this even the default? |
PR is now merge, I think @ruflin you can close issue. |
Elastica/lib/Elastica/Search.php
Line 466 in 02bf2fb
Currently the request method is hardcoded and I need to change it to be able to use a proxy. My current workaround is the following:
But what I actually wanted to do would be something like this:
The text was updated successfully, but these errors were encountered: