Page 1 of 1

username for HTTP proxy contains "at symbol" (@)

Posted: 14 Feb 2009 14:59
by jrubio
Hello,

In my company access to Internet is through a HTTP Proxy which requires authentication.

Besides the username contains the "at symbol" (@).

According to documentation the syntax for setting proxies in VLC is: http://[user[:password]@]proxy.example.com:port/

The problem is that the first @ is in the username, then all the rest is considered address, and therefore the connection fails.

Is there any other way to specify the username and password?

Thank you!

Re: username for HTTP proxy contains "at symbol" (@)

Posted: 14 Feb 2009 16:22
by Rémi Denis-Courmont
That's the standard URI scheme for HTTP, this is not a VLC problem.

In principle, you need to URI-encode the username, but I am not sure if VLC supports this.

Re: username for HTTP proxy contains "at symbol" (@)

Posted: 26 Aug 2009 09:13
by jrubio
Hello,

Coding the '@' as %40 in username makes vlc to parse Ok each token, but my Company's Proxy does not understand the username coded this way (foo1%40foo2, instead of foo1@foo2).
  • Does anyone know any another workaround for this?
  • Is there any possibility that VLC have a special field/environment variable for proxy username instead or besides of using the current syntax?
Thank you!

-- Julio Rubio

Re: username for HTTP proxy contains "at symbol" (@)

Posted: 26 Aug 2009 17:02
by Rémi Denis-Courmont
There is the http_proxy variable, but I think you'll hit the same problem.

Re: username for HTTP proxy contains "at symbol" (@)

Posted: 28 Aug 2009 10:17
by jrubio
Hello,

In the end I solved the question using two tricks:
  1. Using wget to by-pass vlc proxy limitation when username contains the "at symbol" (@)
  2. Using a pipe to pass the stream from wget to vlc, and indicating which codec/demux to use to decode data from the pipe (in my case aac or mp4a, it seems default is mp3)

Code: Select all

export http_proxy=http://10.0.0.1:8080 wget --proxy-user=foo1@foo2 --proxy-password=foo3 <URL> -O - | vlc - :demux=aac
I use Cygwin wget version because I had it already installed.

This is the shell script for launching my favorite radio with a few more optimizations:

Code: Select all

#!/bin/bash export http_proxy=http://10.0.0.1:8080 PATH=/cygdrive/c/Archivos\ de\ programa/VideoLAN/VLC:$PATH wget --proxy-user=foo1@foo2 --proxy-password=foo3 http://www.radiosuisseclassique.ch/live/aacp32.m3u -O - | head -n 1 | wget --proxy-user=foo1@foo2 --proxy-password=foo3 -i - -O - | vlc --no-qt-error-dialogs - :demux=aac
Regards