Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1056651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:44:46+00:00 2026-05-16T17:44:46+00:00

If a browser requests http://site.com/?q=abc and gets a 301 redirect response to location http://site.com/?q=ABC

  • 0

If a browser requests http://site.com/?q=abc

and gets a 301 redirect response to location http://site.com/?q=ABC (note case of querystring)

Is it possible for the browser to ignore the difference in case and re-request http://site.com/?q=abc, thus causing an infinite redirect loop?

That’s the scenario that appears to be happening according to the IIS logs. It seems to be isolated to Internet Explorer with some variation of the Ask toolbar installed (based on user-agent values). I even installed the Ask toolbar, but have not been able to recreate this scenario in any way.

I can’t post the source code, but for those that want something, here’s the general logic:

Page_Load(object sender, EventArgs e) 
{
    var q = Request.QueryString["q"];

    if (q == "ABC")
    {
        //render page as usual
    }
    else
    {
        Response.RedirectPermanent("[thispage]?q=ABC");
    }
}

As you can see, if this page is requested with ?q=abc it will be redirected once, but then it’ll render as usual because the redirect goes to ?q=ABC.

Is there any scenario where the browser (specifically IE with the Ask toolbar) could ignore the case of the redirect location, causing an endless loop?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:44:46+00:00Added an answer on May 16, 2026 at 5:44 pm

    I hate to answer my own question, but this is probably the best way to close the loop. The excessive redirects was actually not caused by the code I posted. I was fooled.

    We had an HttpModule that, ironically, used code mentioned in this answer. It turns out that installing certain versions of the Ask.com toolbar on IE will modify the user-agent string to include ‘Ask’, causing false-positives on this ‘IsCrawler’ checker.

    Because ‘IsCrawler’ evaluated to true in these cases, a different code path was executed that caused the infinite redirect loop. The querystring case changing was a result of this, not the web browser ignoring the location header as I was asking about.

    Since I didn’t even really answer my question, if anyone can post a somewhat authoritative answer on whether there are any known browsers or scenarios behaving as I asked about, I will mark that as the accepted answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

m.google.com somehow requests the current location when loaded in Android's browser. I want to
How do I capture HTTP response when the request is made by web browser?
What happens if the browser receives a redirect response to an ajax request?
I've got a development site ( http://www.tentenstudios.com/clients/swls/our-surgeon ) that works well in FF, Chrome,
Site: http://na.leagueoflegends.com/ladders/solo-5x5 Search for a a player (example: Jaiybe) You get redirected (in this
The site http://openbook.etoro.com/#/main/ has an live feed what is generated by javascript via XHR
I'm trying to better understand Cross Site Scripting and lets use: http://api.beatport.com/crossdomain.xml as the
How do I determine if a HTTP request came from a browser or something
I am trying to use the autocomplete script on http://www.devbridge.com/projects/autocomplete/jquery/ . Now, the downloaded
this URL www.jinfuwu.com can be access in windows browser,windows telnet, but in my ubuntu

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.