Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Get the HTTP header (environment) usning ASP

Posted on 2001-06-12
3
Medium Priority
?
289 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 800 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

688 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