Page 1 of 1

question re http-handlers and perl

Posted: 16 Feb 2008 15:17
by jimmyo
Hello - I am trying to set up VLC to execute .pl files using -http-handlers.

I am using Windows XP SP2. I have perl.exe installed at C:\Perl\bin\perl.exe

I am using the following command line to start VLC

vlc F:\DVD\File --loop --intf wx --extraintf http --http-host 0.0.0.0:80 --http-handlers pl=C:\Perl\bin\perl.exe --volume=1023 --sout=#duplicate{dst=std{access=mmsh,mux=asfh,dst=:1235}}

I have a simple perl script, called perltest.pl stored in:
C:\Program Files\VideoLAN\VLC\http\perltest.pl

When I go to:
http://localhost/perltest.pl

I get the following web page error message in the browser window:

Error loading C:\Program Files\VideoLAN\VLC\http\perltest.pl
for /perltest.pl

Can anybody help me with how I may have the system mis-configured? I've tested perl.exe separately and that works properly.

...Jim

Re: question re http-handlers and perl

Posted: 19 Feb 2008 01:09
by jimmyo
ok I figured it out. Because I'm using windows I had to use the following in the commandline:
http-handlers="pl=C:\\Perl\\bin\\perl.exe"

Jim