Read header data from a HTTP POST request

How can I read the header information from client such as host name?

What platform (delphi or .net) you are using ?
for delphi, you can use this snippet.