-
Notifications
You must be signed in to change notification settings - Fork 11
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
Proxy server #2
Comments
Hi Alan, Thanks, this is just the kind of thing I need testers to let me know about. Picking up proxy settings from that variable might be good, but since it's part of the Anyway, I'll have to modify the response-parsing function to handle this. I probably won't get to this very soon, as I've got some other things on my plate. But thanks for letting me know. :) |
See <#2>. Thanks to Alan Third (@alanthird) for reporting.
Hi Alan, I added support for Curl's proxy header output, so the example you gave should work now. Please let me know if it does for you. Having solved that, what do you think we should do regarding setting proxy settings for plz? i.e. should we add options for that, or use Thanks for your help and your patience. |
@alphapapa With latest commit:
|
Thanks for your help. |
--http1.1 works. Not only on system proxy, but also on proxy inside emacs.
And it need to correct that my last post was wrong. After a manually delete old
|
@sawyerzheng Ok, let's try to fix this remaining issue:
I can't see in that output why it would be failing to parse that response, but I just pushed another commit which should improve that error message. So please install the latest commit (and you might find this helpful for reloading a new version of a package), and then evaluate this: (let ((eval-expression-print-level nil)
(eval-expression-print-length nil)
(plz-curl-default-args '("--silent" "--compressed" "--location" "--dump-header" "-")))
(plz 'get "https://httpbin.org/user-agent")) Thanks. |
|
I'm not sure if I'm doing something wrong, but this is returning nil:
I have a nasty feeling it may be because I'm now apparently using the built-in Windows curl, which is a recent addition, and perhaps there are line-ending issues or something. If you think the above should work, I'll investigate further. (I already had to remove --compressed because the Windows version doesn't support it. 🙄) |
This should now be fixed in v0.3, with both HTTP/1.1 and HTTP/2. Please let me know how it works for you. Thanks to both of your for your help. |
Always the bane of any http based project, I'm behind a corporate firewall and can only access the internet through a proxy server.
I already set the proxy server in Emacs using url-proxy-services, so it might be nice to automatically pick up proxy server settings from it.
I tried working round it myself by adding a "--proxy" flag to plz-curl-default-args, but it fails as curl returns a second set of headers for the proxy server:
The text was updated successfully, but these errors were encountered: