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

Installing packages behind proxy #52

Open
ghost opened this issue Nov 20, 2017 · 5 comments
Open

Installing packages behind proxy #52

ghost opened this issue Nov 20, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 20, 2017

Hello, could you please tell me how can I use your library from behind a proxy? I think this issue may be related to Github,because this works
cget install http://zlib.net/zlib-1.2.11.tar.gz
,however this doesn't
cget install pfultz2/cget-recipes.

@pfultz2
Copy link
Owner

pfultz2 commented Nov 20, 2017

Hello, could you please tell me how can I use your library from behind a proxy?

What kind of proxy?

however this doesn't

Do you have direct access to github?

@ghost
Copy link
Author

ghost commented Nov 20, 2017

Corporate proxy - Zscaler. I have http_proxy and https_proxy variables correctly set up, I can do git clone without problem, but somehow the way your application tries to download from Github the proxy doesn't like. Do you know what might be the problem?

@pfultz2
Copy link
Owner

pfultz2 commented Nov 21, 2017

It doesn't use git, it just downloads the tarballs from https://github.com/pfultz2/cget-recipes/archive/master.tar.gz. Is that url not accessible?

@ghost
Copy link
Author

ghost commented Nov 21, 2017

I can access that url from curl, but it is redirecting somewhere else. I think we need to use directly the url which it redirects to in order to work behind proxy. I have tried to fix your code, but I am not that much familiar with Python,

C:\Users\jmasarb.JCPLC\Downloads\cget>cget install pfultz2/pkgconfig
Downloading https://github.com/pfultz2/pkgconfig/archive/HEAD.tar.gz
Download failed with error 500 for: //github.com/pfultz2/pkgconfig/archive/HEAD.tar.gz
Failed to build package pfultz2/pkgconfig

@pfultz2
Copy link
Owner

pfultz2 commented Nov 21, 2017

I am not sure why its sending 500, for a redirect it should send 302. Here is the line the that creates the github url. You could change it to what you think the url should be.

It also may be a problem with https with the proxy server. You can try adding the --insecure flag to force it to always use http instead of https.

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

1 participant