title: How do I access the HTTP Header of request in a CGI script?
body: <p>I've used Perl a bit for small applications and test code, but I'm new to networking and CGI.</p>
  
  <p>I get how to make the header of a request (using CGI.pm and printing the results of the header() function), but haven't been able to find any info on how to access the headers being sent to my CGI script. Could someone point me in the right direction?</p>
  
  <p>This could be from a request like this:</p>
  
  <p><code>curl http://127.0.0.1:80/cgi-bin/headers.cgi -H "HeaderAttribute: value"</code></p>