Help for this page

Select Code to Download


  1. or download this
    $ perl -MCGI -le"print CGI->header(qw! -type image/jpeg -nph 1!)
    HTTP/1.0 200 OK
    ...
    Content-Type: image/jpeg
    
  2. or download this
        # add or replace the 'type' header
        $webapp->header_add( -type => 'image/jpeg', -attachment => 'foo.jp
    +g' );