Help for this page

Select Code to Download


  1. or download this
    Note that the default being ISO-8859-1 may not
    make sense for all content types, e.g.
    ...
    
    In the above case you need to pass -charset => ''
    to prevent the default being used.
    
  2. or download this
    # mycgi.pl
    use CGI;
    ...
    open (IMAGE, '<', 'foo.xls');
    print <IMAGE>;
    close IMAGE;
    
  3. or download this
    while true; do { echo -ne "HTTP/1.1 200 OK\r\n"; perl mycgi.pl; } | nc
    + -l -k  8080; done