Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am accessing web (port 80) using a proxy server which requires authentication. For web browser, it pops a window where I can enter my username and password but when I am using command-line (cmd) and try to run a program which uses web, no authentication window is poped and it says that authentication fails. I have entered proxy address in IE which the whole system uses but how can I find some alternative to authentication window for command-line?

share|improve this question
2  
What program are you using? Some tools like wget/curl will allow you to pass the proxy auth credentials. –  Zoredache Jun 27 '10 at 1:34
add comment

2 Answers

The command line is not the one in charge of HTTP authentication - it is the program you run from the command line. There is no setting that would work for all command line run programs.

share|improve this answer
add comment

This is kind of an old question, but I came across it and saw it didn't have an accepted answer, so I'll give some feedback in case anyone else stumbles across this question.

I had to authenticate myself with a corporate proxy using the command line so I could install some Rubygems. I used

set http_proxy=http://username:password@www-domain.com:80

I'm not sure why the proxy server didn't recognize me even though I was logged into my corporate account, but I needed to re-authenticate myself, and that worked for me. After using that command, I could download the Rubygems. It does require you to type your password in plaintext, and that will appear in plaintext to anyone doing a packet capture during your session. Maybe someone can suggest a way to feed in credentials securely?

share|improve this answer
    
The end of your post looks like you posted it before you were finished typing. Use the Edit link to edit it. –  BenjiWiebe Jun 23 at 13:51
    
Thanks for the heads up, fixed! –  Shwheelz Jun 23 at 15:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.