-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[question] howto disable redirect? #171
Comments
[bump] |
1 similar comment
[bump] |
You will need to use |
I was able to disable redirects on windows by using the code shown below, does anyone know how to achieve the same on Linux?
|
@zwaheed-rms, I don't believe that redirects are implemented in the asio-based http client which is used on Linux. |
Necro-posting just to show a more concise way to do it that worked for me:
|
Hi
I GET a url that redirects (302) to a new url. cpprestsdk automatically redirects to the new url. In this case that's not what I want. I want to disable redirection, so that I can get at the http response header of the original url. (This header has important Set-Cookie information. I need to store this cookie in my application, so that I can use this cookie later for other GET calls)
How do I do this?
The text was updated successfully, but these errors were encountered: