in reply to Re^6: awanti Perl not playing video with vlc plugin
in thread Perl not playing video with vlc plugin

In the error log for your code is writing like this
[Wed Dec 30 10:51:28 2015] [error] [client 127.0.0.1] malformed header + from script. Bad header=HTTP/1.1 200 OK: download.cgi

Replies are listed 'Best First'.
Re^8: awanti Perl not playing video with vlc plugin
by Corion (Patriarch) on Dec 30, 2015 at 07:50 UTC

    So maybe your webserver does not like a HTTP status line written from your script. Have you consulted the web server documentation as to what it wants CGI scripts to output?

    Maybe you can leave that line out, or change it to output the following instead:

    Status: 200

    This will likely be documented in your web server documentation.

      oooh, clever eagleeye :D -nph option forces full set of headers, if thats a problem, omit -nph line .... webservers are WEIRD
        i think -nph line was the problem when i commented that it has no errors..but instead playing the video it is prompting a dialog to save the that file.