Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 5th, 2003, 01:50 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default search with http header

Does anybody know of a way to do a search using the http header such as
http://www.something.com/searchthis. My code would grab the searchthis and look it up in the Database.

I have looked and cannot find anything on this. About the only solution I can come up with would be to use my 404 Error page and have my search code on that page. Any suggestions would be helpful.

Thanks
Mike
__________________
Peace
Mike
http://www.eclecticpixel.com
 
Old September 8th, 2003, 04:41 PM
Registered User
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you can use one of:
request.servervariables("URL"),
request.servervariables("PATH_INFO"),
request.servervariables("SCRIPT_NAME")
or have i missed the point

 
Old September 9th, 2003, 09:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Let me see if I can explain a little better, the "searchthis" is not a folder, thats my problem. In the end it will be different store names like MikesStore, FredsStore, etc. I am needing something that can take the name MikesStore and know that it needs to be redirected to my search code page, because MikeStore is not an actual page or folder. I hope that helps. I was looking for maybe a better way than using the error404 page. I hope that helps.

Thanks
Mike
 
Old September 9th, 2003, 09:24 AM
Registered User
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

have you tried customising your 404 page or using a different one - look in iss site properties custom error tab (you can still use the request.servervariables to strip out the offenting detail.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Server did not recognize the value of HTTP Header ndr1977 .NET Web Services 0 May 23rd, 2008 01:50 PM
typing abc.com opens http://abc.com and not http:/ nrlahoti ASP.NET 2.0 Professional 1 February 6th, 2008 01:43 PM
Passing values through HTTP header alexmalayil ASP.NET 2.0 Professional 3 October 27th, 2007 09:10 AM
Http Header....argh, Help Help pls... ? vanjamier Classic ASP Components 7 January 12th, 2005 02:53 PM
HTTP Status 405 - HTTP method GET .... nsakic Servlets 1 January 25th, 2004 04:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.