We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Peeking into the code a bit, I see that CloseableHttpResponse response = createClient().execute(request); yields the following 406 error:
CloseableHttpResponse response = createClient().execute(request);
HttpResponseProxy{HTTP/1.1 406 Not Acceptable [Content-Length: 0, Connection: keep-alive, Status: 406 Not Acceptable, Date: Tue, 10 Jul 2018 20:05:59 GMT, X-Content-Type-Options: nosniff, Server: Webmachine-Ruby/1.5.0 Rack/1.3, X-Pact-Broker-Version: 2.24.0, X-Powered-By: Phusion Passenger 5.1.11] [Content-Length: 0,Chunked: false]}
However it seems that this code snippet works as intended:
CloseableHttpClient httpclient = HttpClients.createDefault(); HttpGet httpGet = new HttpGet(path); CloseableHttpResponse response = httpclient.execute(httpGet);
I am not sure what the difference between the two function calls is. Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Peeking into the code a bit, I see that
CloseableHttpResponse response = createClient().execute(request);
yields the following 406 error:However it seems that this code snippet works as intended:
I am not sure what the difference between the two function calls is. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: