Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 5th, 2003, 01:50 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Oklahoma City, Oklahoma, USA.
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
Reply With Quote
  #2 (permalink)  
Old September 8th, 2003, 04:41 PM
Registered User
 
Join Date: Sep 2003
Location: , , .
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

Reply With Quote
  #3 (permalink)  
Old September 9th, 2003, 09:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Oklahoma City, Oklahoma, USA.
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
Reply With Quote
  #4 (permalink)  
Old September 9th, 2003, 09:24 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
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.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 12: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 01:53 PM
HTTP Status 405 - HTTP method GET .... nsakic Servlets 1 January 25th, 2004 03:50 PM



All times are GMT -4. The time now is 10:26 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.