-
Notifications
You must be signed in to change notification settings - Fork 32
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
Argument -L doesn't work #22
Comments
Hi, will try tomorrow, thanks for the feedback. |
Try this : @Test
public void curlWithRedirect () {
curl("-L http://www.yahoo.com");
} add a breakpoint in I am simulating the hsts feature (automatic redirect to https). And it just works |
So maybe your problem relates to something else. |
Sorry, this is closed corporate environment. |
I believe you should set a log4j.properties file next to your code, with this content :
re run your code, and then give me the logs. |
Also do you know if you have a value set for one of these variables : |
Describe the bug
Argument -L doesn't work
Environment
Windows
Reverse proxy ? N
VPN ? N
Proxy ? Y , but behavior is exactly same when proxy is disabled
Curl command line
curl -L http:///page/
Expected behavior
Should work like curl.exe
curl.exe gives me the same error when there is no --location argument provided!!
Stacktrace
HttpResponseProxy{HTTP/1.0 308 PERMANENT REDIRECT [Content-Type: text/html; charset=utf-8, Content-Length: 281, Location: http:///page/, Server: Werkzeug/0.15.2 Python/2.7.13, Date: Tue, 09 Apr 2019 04:46:14 GMT] ResponseEntityProxy{[Content-Type: text/html; charset=utf-8,Content-Length: 281,Chunked: false]}}
The text was updated successfully, but these errors were encountered: