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
support for proxy authentication #28
Comments
@tolot27 do you know whether we can work around that in some way? Or would we have to patch CPR? What's your use case? |
I've already merged the PR libcpr/cpr/pull/253 from @paulohefagundes locally but the proxy settings are still not used: In this line the I don't know whether https://github.com/AppImage/zsync2/blob/7857ff19daa36139bf3c5d8b7340ad475af5c33d/src/legacy_http.c#L91 is executed because the line At work, I'm behind a corporate proxy with basic authentication. Hence, I've run into this kind of issue with many software tools. |
Thanks for your detailed response. In fact, the legacy HTTP stuff is not used any more. It should be removed, I guess. We use only CPR for making HTTP connections. If we have to change anything in how we use CPR, we can surely do that. The PR you referenced is rather outdated, and might not necessarily work as intended any more. |
Hm, CPR seems like it isn't maintained very actively any more. Perhaps it's time for us to switch? |
Switch to what? Currently, I'm at home an cannot continue testing and development. If Nevertheless, I thought CURL would read the
Then |
That's the question. Back in 2017, CPR was actively maintained, and provided a much less annoying API than curl's easy C interface. I am not aware of alternatives, but to be fair, I haven't invested any time in searching yet.
With legacy, I mean code in I just checked the source code, and it seems that in contrary to my previous statement, some of the HTTP requests we make are still performed by We could only replace that code by rewriting it in a more C++-ish style. Right now, we don't have any plans to do so right now. It doesn't seem like too much work, though, the code only performs a set of range requests which we could do through CPR as well. It would be great if you could check whether calling those methods on the session will at least make the requests called using CPR work as intended, then we can discuss whether to replace the range request code. |
Currently, proxy authentication is not supported because of lack of support in CPR (libcpr/cpr/issues/248).
The text was updated successfully, but these errors were encountered: