How to export http_proxy when username contains an @ symbol?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to export http_proxy when username contains an @ symbol?
Hi all,
First post here, hope I'm in the right area. I've searched t'internet in general and on this forum, but can't find an answer to this one...
I would like to get http proxying working from the console, but as my Linux box is behind a corporate network it just so happens that my username for the proxy server contains an @ symbol. So, when I try to use the following type of command:
This seems to break things, presumably because something is parsing everything after the first @ as the address of the proxy.
Can anyone give me any hints as to how I can get it to work? I've tried # and % as delimiters but just get different errors, as presumably the proxy server itself isn't set up to accept anything other than @.
As an aside, the only reason I really need to get this to work is so that I can try to use YUM from the console, as when I put an openSuSE 10.3 repository in as an installation source, YaST's Online Update utility just disappears shortly after I run it. So, if anyone has any bright ideas on that one then it'll avoid the need to fix the proxy issue!
First post here, hope I'm in the right area. I've searched t'internet in general and on this forum, but can't find an answer to this one...
I would like to get http proxying working from the console, but as my Linux box is behind a corporate network it just so happens that my username for the proxy server contains an @ symbol. So, when I try to use the following type of command:
This seems to break things, presumably because something is parsing everything after the first @ as the address of the proxy.
Can anyone give me any hints as to how I can get it to work? I've tried # and % as delimiters but just get different errors, as presumably the proxy server itself isn't set up to accept anything other than @.
As an aside, the only reason I really need to get this to work is so that I can try to use YUM from the console, as when I put an openSuSE 10.3 repository in as an installation source, YaST's Online Update utility just disappears shortly after I run it. So, if anyone has any bright ideas on that one then it'll avoid the need to fix the proxy issue!
Many thanks in advance,
--
Olly
Welcome!
Try to escape the @ character with a backslash \, and see if it works. You can also set up a .wgetrc/.netrc file, that has the proxy_user and proxy_passwd variables set, and that may work for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.