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

yeah when i check the request and response header it is messing up here is the response header
Cache-Control: public, must-revalidate, max-age=0Pragma: no-cacheAccep +t-Ranges: bytesContent-Length: 128959310 - 0 Connection: Keep-Alive Content-Type: application/x-vlc-plugin Date: Tue, 29 Dec 2015 11:17:01 GMT Keep-Alive: timeout=5, max=100 Server: Apache/2.2.22 (Ubuntu)
yeah it is malformed..

Replies are listed 'Best First'.
Re^5: Perl not playing video with vlc plugin
by Corion (Patriarch) on Dec 29, 2015 at 11:31 UTC

    Let me recommend, once again, to use \r\n instead of \n to delimit the HTTP header lines when you print them.

    Also, your Content-Length "header" is still malformed.

      Yeah i added and got this response
      Connection: close Content-Encoding: gzip Content-Length: 391 Content-Type: text/html; charset=iso-8859-1 Date: Tue, 29 Dec 2015 11:39:35 GMT Server: Apache/2.2.22 (Ubuntu) Vary: Accept-Encoding
      but i am getting the internal server error and in the error log it is writing
      Premature end of script headers: download.cgi

        Please run your script outside of the HTTP server and inspect its output. Your web server adds some headers and misinterprets some other headers. Most likely, your script does not output what you think it should.