[MPlayer-dev-eng] [PATCH] Support login/password in http_proxy env variable

Clément Bœsch ubitux at gmail.com
Wed Oct 20 12:38:07 CEST 2010


Hi again,

There is one last patch to add to the 7 previous, and here it is. It
allows login and password in http_proxy environment variable.

Now, all those commands are equivalent and work:

  $ http_proxy='http://pu:pp@proxy:3128/' mplayer 'http://u:p@host:8000'

  $ http_proxy='http://pu:pp@proxy:3128/' mplayer 'http://host:8000' -user u -passwd p

  $ mplayer 'http_proxy://pu:pp@proxy:3128/http://u:p@host:8000'

  $ mplayer 'http_proxy://pu:pp@proxy:3128/http://host:8000' -user u -passwd p

A good way to test all this stuff it is to use polipo, with for example:

  $ polipo daemonise=false 'authCredentials="login_x:{(?!)}"'

Regards,

-- 
Clément B.
Not sent from a jesusPhone.


More information about the MPlayer-dev-eng mailing list