PDA

View Full Version : http_referer error


Phip
10-07-2002, 08:26 AM
how come i get this:
Response object error 'ASP 0158 : 80004005'

Missing URL

/wickedaz/secure/shout/post.asp, line 37

A URL is required.

when i use this:

Response.Redirect(Request.ServerVariables("HTTP_REFERER"))

glenngv
10-07-2002, 10:30 AM
Request.ServerVariables("HTTP_REFERER") returns empty causing response.redirect to have a blank argument.

http_referer returns empty if you just typed the url in the address bar and not coming from a link or another page.

Phip
10-07-2002, 10:54 AM
i am not going directly to the page. i am submiting a form then want it to send me back to the page where i did it from.

glenngv
10-07-2002, 11:32 AM
try to debug first:

response.write "Referer:" & Request.ServerVariables("HTTP_REFERER")
response.end

Phip
10-07-2002, 09:17 PM
odd i just tried it this morning and it works now. :confused: