PVDLAB.NET
 Customers   Buy now   Partnership   Support   Contacts 
  { www.pvdlab.net / Cgi Faq / HTTP Headers and NPH Scripts / What HTTP request headers can I use? }

What HTTP request headers can I use?

Most HTTP request headers are passed to the CGI script as environment
variables.   Some are guaranteed by the CGI spec.   Others are server,
browser and/or application dependent.
To see what _your_ browser and server are telling each other, just use
a trivial little CGI script to print out the environment.   In Unix:
 #!/bin/sh
 echo "Content-type: text/plain"
 echo
 set
(Just call it "env.cgi" or something, and put it where your server
will execute it.   Then point your browser at
http://your.server/path/to/env.cgi ).
This enables you to see at-a-glance what useful server variables are set.
Note that dumping the environment like this within a more complex
script can be a useful debugging technique.
For details, see the CGI Environment Variables specification at
http://hoohoo.ncsa.uiuc.edu/cgi/env.html
(which also includes a version of the above script - somewhat more
nicely formatted - online).


 OUR NEWS

}
From now the site of our new clients MaBiCo.com and MaBiCo.ru is also in Internet! Powered by PVD News System v4.
}
From now the site of our new client SPORT.RU is also in Internet! Powered by PVD News System.
}
From now the site of our new client Seaside TV and Radio is also in Internet! Powered by PVD News System v4.
}
From now the site of our new client News Agency "Oreanda" is also in Internet! Powered by PVD News System.
}
PVD Update Manager is renewed! From now it supports any quantity of named files repositories.

 OUR LINKS
CGI FAQ }
FOREX  }
Personal Finance  }
Business and Finance  }

Powered by Apache Powered by ModPerl Powered by MySQL Performance optimized by LoadRunner
Copyright 2004 © PVDLab Tel.No: +375-29-6257816
+7 (812) 9307447
+7 (812) 3203123