Skip to content
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

Linux Redirection Issue.How to implement automatic redirection in linux? #222

Open
lycug opened this issue Aug 18, 2016 · 3 comments
Open

Comments

@lycug
Copy link

lycug commented Aug 18, 2016

  1. I resovled the response headers from sever1 ,and get the value of header filed "Location",means the redirection uri.
  2. I construct a http_client instance using the redirection uri from the step 1, and send request to the redirected sever2.
  3. I got the response from the sever2.

So,it is a "redirection" implementation, but it produces a lot of problem.like:

  1. it doesn't think of the problem about muilt-redirection(i mean muiltple hops redirection).
  2. In step 2, i construct a new http_client instance,not use the original client,i think it is a wast .

So,i want to know how to use one http_client instance to implement the muil-redirection by CPPREST.
Thinks.

@8W9aG
Copy link

8W9aG commented Mar 1, 2017

👍 I am also seeing this issue on OSX, looking through the issues it seems windows implements this automatically but the boost ASIO implementation doesn't, is the intention to support automatic redirects here?

@8W9aG
Copy link

8W9aG commented Mar 2, 2017

I've got a PR for automatic redirection here: #373

@phaeta
Copy link

phaeta commented Apr 3, 2017

Bump, for OSX interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants