-
Notifications
You must be signed in to change notification settings - Fork 591
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
Invalid Headers when using Unirest #97
Comments
I encountered the same problem and found a solution: RequestConfig globalConfig = RequestConfig.custom() .setCookieSpec(CookieSpecs.IGNORE_COOKIES).build(); HttpClient httpclient = HttpClients.custom().setDefaultRequestConfig(globalConfig).build(); Unirest.setHttpClient(httpclient); |
Thanks for the response, Wondering is there a way to fix it than just IGNORING cookies/warnings? |
CookieSpecs.IGNORE_COOKIES: just IGNORING cookies |
Hello, this should be resolved or addressed in Unirest 2. Please see the upgrade guide for important changes. |
Unirest.config().cookieSpec("standard"); solved it for me. |
I am making a standard
POST
request to a server and I get the following while receiving a response.Can someone please help me fix this frustrating error? I love Unirest, it's like
requests
but in Java too!The text was updated successfully, but these errors were encountered: