Solved

Get the HTTP header (environment) usning ASP

Posted on 2001-06-12
3
268 Views
Last Modified: 2012-06-21
Hi,
   I want to capture the HTTP header (environment) of a request where I get all the information in the HTTP header and assign it to a variable. Looking forward for your early reply.

0
Comment
Question by:malibrahim
  • 2
3 Comments
 
LVL 7

Expert Comment

by:John844
ID: 6181406
Request.ServerVariables (server environment variable)

 

Parameters
server environment variable
Specifies the name of the server environment variable to retrieve. It can be one of the following values. Variable Description
ALL_HTTP All HTTP headers sent by the client.
ALL_RAW Retrieves all headers in raw form. The difference between ALL_RAW and ALL_HTTP is that ALL_HTTP places an HTTP_ prefix before the header name and the header name is always capitalized. In ALL_RAW the header name and values appear as they are sent by the client.  


Try Request.ServerVariables("ALL_HTTP")
or Request.ServerVariables("ALL_RAW")
0
 
LVL 7

Accepted Solution

by:
John844 earned 200 total points
ID: 6181420
dim strHeader
strHeader = Request.ServerVariables("ALL_RAW")
0
 

Author Comment

by:malibrahim
ID: 6181495
Thanks for the Fast reply :)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question