Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^7: awanti Perl not playing video with vlc plugin

by awanti (Acolyte)
on Dec 30, 2015 at 05:27 UTC ( [id://1151436]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1151436]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-16 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found