question re http-handlers and perl

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
jimmyo
Blank Cone
Blank Cone
Posts: 10
Joined: 30 Sep 2007 22:13

question re http-handlers and perl

Postby jimmyo » 16 Feb 2008 15:17

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

jimmyo
Blank Cone
Blank Cone
Posts: 10
Joined: 30 Sep 2007 22:13

Re: question re http-handlers and perl

Postby jimmyo » 19 Feb 2008 01:09

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 5 guests