
Why there is no switch to turn off any use of proxy in cabal-install? Or to supply username/password pair in command line. I have a strange situation: wget works like charm ignoring proxy (I downloaded Cabal and cabal-install to investigate the problem using wget), Firefox works like charm igoring proxy, and only cabal cannot access anything, because it follows proper proxy protocol and our proxy requires username and password. And I don't know of proper way to supply them through http_proxy environment variable. The most annoying part is that it is too much work to download and build cabal using wget and scripts - I once tried it for some other utility and didn't succeed. PS And while I am on it, I'd like to suggest that cabal-install should read common options like credentials from environment or configuration file.

Serguey Zefirov
Why there is no switch to turn off any use of proxy in cabal-install? Or to supply username/password pair in command line.
I have a strange situation: wget works like charm ignoring proxy (I downloaded Cabal and cabal-install to investigate the problem using wget), Firefox works like charm igoring proxy, and only cabal cannot access anything, because it follows proper proxy protocol and our proxy requires username and password.
"Ignoring proxy"?
And I don't know of proper way to supply them through http_proxy environment variable.
export http_proxy="http://${username}:${password}@${proxy_url}"
PS And while I am on it, I'd like to suggest that cabal-install should read common options like credentials from environment or configuration file.
Which credentials? I thought that the proxy stuff was how the system connected to the net, etc. and cabal-install just used the system's connection... (I could be wrong however). -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

2010/5/19 Ivan Lazar Miljenovic
Serguey Zefirov
writes: Why there is no switch to turn off any use of proxy in cabal-install? Or to supply username/password pair in command line. I have a strange situation: wget works like charm ignoring proxy (I downloaded Cabal and cabal-install to investigate the problem using wget), Firefox works like charm igoring proxy, and only cabal cannot access anything, because it follows proper proxy protocol and our proxy requires username and password. "Ignoring proxy"?
Yes, they go right to internet. Firefox set to "No proxy" connection type.
And I don't know of proper way to supply them through http_proxy environment variable. export http_proxy="http://${username}:${password}@${proxy_url}"
I tried it and it didn't work. I don't know reason, though, maybe it was because my current password not entirely alphanumeric.

Serguey Zefirov
export http_proxy="http://${username}:${password}@${proxy_url}"
I tried it and it didn't work. I don't know reason, though, maybe it was because my current password not entirely alphanumeric.
Shouldn't matter as long as you put it within quotes. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

On May 19, 2010, at 04:49 , Ivan Lazar Miljenovic wrote:
Serguey Zefirov
writes: export http_proxy="http://${username}:${password}@${proxy_url}"
I tried it and it didn't work. I don't know reason, though, maybe it was because my current password not entirely alphanumeric.
Shouldn't matter as long as you put it within quotes.
I imagine things will go wrong if it includes an @... urlencoding is probably a smart idea. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

I tried it and it didn't work. I don't know reason, though, maybe it was because my current password not entirely alphanumeric. Shouldn't matter as long as you put it within quotes. I imagine things will go wrong if it includes an @... urlencoding is probably a smart idea.
Thank you very much! I'll definitely try that. And, as I'm on it again, switch to just ignore proxy would be better. ;)
participants (3)
-
Brandon S. Allbery KF8NH
-
Ivan Lazar Miljenovic
-
Serguey Zefirov