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

Request: Proxy settings for curl #67

Open
tenyuhuang opened this issue Mar 24, 2021 · 2 comments
Open

Request: Proxy settings for curl #67

tenyuhuang opened this issue Mar 24, 2021 · 2 comments

Comments

@tenyuhuang
Copy link

Hi, I'm wondering since curl itself has built-in proxy support, could we have an option for that in various updater scripts (sometime in the future)?

Thanks in advance!

@Locutus73
Copy link
Member

Locutus73 commented Mar 30, 2021

cURL should support proxy with this option:

-x, --proxy <[protocol://][user:password@]proxyhost[:port]>

     Use the specified HTTP proxy. 
     If the port number is not specified, it is assumed at port 1080.

You could try adding that to CURL_RETRY ini option, which, by default is set to
CURL_RETRY="--connect-timeout 15 --max-time 180 --retry 3 --retry-delay 5"

Let me know if you have success.

@tenyuhuang
Copy link
Author

cURL should support proxy with this option:

-x, --proxy <[protocol://][user:password@]proxyhost[:port]>

     Use the specified HTTP proxy. 
     If the port number is not specified, it is assumed at port 1080.

You could try adding that to CURL_RETRY ini option, which, by default is set to
CURL_RETRY="--connect-timeout 15 --max-time 180 --retry 3 --retry-delay 5"

Let me know if you have success.

Hi, thanks for the tips! Actually I was suggested to do that by a few people; while it works, I'm sugesting if we could consider making it a variable available for configuration?

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

No branches or pull requests

2 participants