Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Custom error pages - how to access full HTTP request string

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Is it possible to install IIS 6.0 multiple times ..  
Author Message
user1018

External


Since: Oct 29, 2003
Posts: 3



(Msg. 1) Posted: Wed Oct 29, 2003 7:37 pm
Post subject: Custom error pages - how to access full HTTP request string
Archived from groups: microsoft>public>inetserver>iis (more info?)

When a page is requested and not found (common error 404), we can get
control back at IIS level and, for instance, trough an ASP page, provide the
user with some hints to redirect his request.

Unfortunately, the custom error page (ASP) is not given any mean for
retrieving variables of the request if those were sent through GET (or POST)
method. QUERY_STRING variable contains the path to the page asked without
"?variable=value" information, QueryString and Form collections are empty.
The QUERY_STRING server variable is filled with "404;<original URL without
parameters>".

Do anyone have idea on how to get access to those parameters transferred by
the browser to the server in the original request?

Pierre Hubaut
ATOFINA / TOTAL - Brussels

 >> Stay informed about: Custom error pages - how to access full HTTP request string 
Back to top
Login to vote
user1018

External


Since: Oct 29, 2003
Posts: 3



(Msg. 2) Posted: Fri Oct 31, 2003 1:05 pm
Post subject: Re: Custom error pages - how to access full HTTP request string [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > When a page is requested and not found (common error 404), we can get
 > control back at IIS level and, for instance, trough an ASP page, provide
the
 > user with some hints to redirect his request.
using the "Custom Error" concept and make error points to an .ASP page (for
instance)

 > Unfortunately, the custom error page (ASP) is not given any mean for
 > retrieving variables of the request if those were sent through GET (or
POST)
 > method. QUERY_STRING variable contains the path to the page asked without
 > "?variable=value" information, QueryString and Form collections are empty.
 > The QUERY_STRING server variable is filled with "404;<original URL without
 > parameters>".
Actually, it works EXCEPT when the original page that user was trying to
access is an .asp page, if he tries with
<a style='text-decoration: underline;' href="http://myserver/MyDummyPage.htm?MyVar=MyValue" target="_blank">http://myserver/MyDummyPage.htm?MyVar=MyValue</a> it works... if he tries with
<a style='text-decoration: underline;' href="http://myserver/MyDummyASPPage.asp?MyVar=MyValue" target="_blank">http://myserver/MyDummyASPPage.asp?MyVar=MyValue</a> it FAILS!

 > Do anyone have idea on how to get access to those parameters transferred
by
 > the browser to the server in the original request?<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Custom error pages - how to access full HTTP request string 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]