Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>HTTP and CGI are different things. The Perl CGI module calls what it does an "HTTP header", but it's really just a CGI header for the server to fix up before it goes back to the client. They look a lot alike which is why people get confused and why the CGI.pm docs don't help by calling them the wrong thing.</p> <p>Apache fixes up the CGI headers to make them into HTTP headers, including adding the HTTP status line and anything else it might need. </p> <p>If you webserver isn't fixing up the header for you, it's probably expecting a "no-parsed header" where you take responsibility for the entire header. To do that in CGI.pm, you have to add the <code>-nph</code> option to your call to header, and you have to make the complete header yourself, including headers such as <code>Expires</code> and <code>Last-Modified</code>. See the docs under <a href="http://search.cpan.org/~lds/CGI.pm-3.42/CGI.pm#CREATING_A_STANDARD_HTTP_HEADER:" rel="nofollow noreferrer">Creating a Standard HTTP Header</a>. You can turn on NPH in three ways:</p> <pre><code>use CGI qw(-nph) CGI::nph(1) print header( -nph =&gt; 1, ...) </code></pre> <p>Are you using an older version of IIS? CGI.pm used to turn on the NPH feature for you automatically for IIS, but now that line is commented out in the source in CGI.pm:</p> <pre><code># This no longer seems to be necessary # Turn on NPH scripts by default when running under IIS server! # $NPH++ if defined($ENV{'SERVER_SOFTWARE'}) &amp;&amp; $ENV{'SERVER_SOFTWARE'}=~/IIS/; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload