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

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
jrubio
New Cone
New Cone
Posts: 4
Joined: 14 Feb 2009 14:49

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

Postby jrubio » 14 Feb 2009 14:59

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!

Rémi Denis-Courmont
Developer
Developer
Posts: 15335
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 14 Feb 2009 16:22

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jrubio
New Cone
New Cone
Posts: 4
Joined: 14 Feb 2009 14:49

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

Postby jrubio » 26 Aug 2009 09:13

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15335
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 26 Aug 2009 17:02

There is the http_proxy variable, but I think you'll hit the same problem.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jrubio
New Cone
New Cone
Posts: 4
Joined: 14 Feb 2009 14:49

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

Postby jrubio » 28 Aug 2009 10:17

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 85 guests