473,507 Members | 3,706 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

request.servervariables error

I posted this elsewhere ; probably the wrong place so i am posting this
again

I am using the following script:

hrefer=Request.Servervariables("HTTP_REFERER")
hrhost=Request.Servervariables("REMOTE_HOST")
hruagent=Request.Servervariables("HTTP_USER_AGENT" )
hriisid=Request.Servervariables("INSTANCE_ID")
hrsname=Request.Servervariables("SERVER_NAME")
hladd=Request.Servervariables("LOCAL_ADDR")
ipadd=Request.Servervariables("REMOTE_ADDR")

If session("ipadd") <> ipadd Then
session("ipadd")=ipadd
sql="insert into iplog (hrefer, hrhost, huagent, hiisid, hsname,
hladd,
ipadd) values " & _
"('" & hrefer & "', '" & hrhost & "', '" & hruagent & "', '" &
hriisid
& "', '" & hrsname & "', " & _
"'" & hladd & "', '" & ipadd & "')"
conn.execute sql
End If

Problem is that it works fine, but does not record the refering website
; like if the request comes from a google search ; it does not record
the google querystring used, so i am not able to extract the keywords
used.

Suggest.


A comprehensive knowledgebase on EECP treatment and procedures
worldwide.
http://www.eecpworld.com
Provide your suggestions for improvement

*** Sent via Developersdex http://www.developersdex.com ***
Dec 13 '05 #1
1 2775
"preet" <preetkanwaljit> wrote in message
news:#A**************@TK2MSFTNGP10.phx.gbl...
I posted this elsewhere ; probably the wrong place so i am posting this
again

I am using the following script:

hrefer=Request.Servervariables("HTTP_REFERER")
[snip]
Problem is that it works fine, but does not record the refering website
; like if the request comes from a google search ; it does not record
the google querystring used, so i am not able to extract the keywords
used.

Suggest.


[snip]

Request.Servervariables("HTTP_REFERER")

is often block by firewalls.
Dec 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14017
by: JW | last post by:
I use Request.ServerVariables("HTTP_REFERER") to get the URL of the referrer page. However, if the page that has Request.ServerVariables("HTTP_REFERER") is in a popup window then the value is...
1
2555
by: JW | last post by:
Sorry, posting this twice as it tagged on to a spetember posting: --------------------------------------------------------------- I use Request.ServerVariables("HTTP_REFERER") to get the URL of...
2
6662
by: W. Loo | last post by:
Hi, I've got a question regarding the usage of Request.ServerVariables. I'm not sure this is really a ASP question, so redirects to a more appropriate newsgroup are welcome. I have a variable...
3
9770
by: crjunk | last post by:
I have the following url: https://test.mywebsite.com/secure/programs/test.asp?TOPIC_ID=21 How can I get the value "secure/programs/test.asp?TOPIC_ID=21" I can't use...
1
2082
by: Elliot M. Rodriguez | last post by:
..NET Framework 1.1 Has anyone reported or experienced NullReferenceException errors when accessing the HTTP_REFERER value on clients that are behind web blocking software? At least one of...
2
1647
by: TS | last post by:
I seem to remember reading somewhere that accessing this collection is expensive and you should avoid it if possible. Are there any alternatives to the following: Request.ServerVariables; ...
3
1910
by: Jason Hawthorne | last post by:
I am trying to get this code to work in a class file that I use in all of my pages. Public Shared Function Check_Site() As String Dim arr() As String Dim coll As NameValueCollection coll...
2
4105
by: Henry Stock | last post by:
I don't seem to understand how to use the value: Request.ServerVariables("remote_addr") I am trying to pass the ip address of a sending web client in the body of an email message. When I...
8
2509
by: samaelsh | last post by:
Hi guys! I`ve got an ASP web site that worked perfectly on a virtual server. I had to reinstall it on my computer (win XP sp2, IIS 5.1). I changed all the routes, database connection string, etc....
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.