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

I learned Why Request.Browser.Crawler is Always False in C# ( http://www.digcode.com/default.aspx?page=ed51cde3-d979-4daf-afae-fa6192562ea9&article=bc3a7a4f-f53e-4f88-8e9c-c9337f6c05a0 ). Does anyone
If webserver can send gzip response, why can't browser sent gzip request?
What is iPhone's browser tag and how iPhone optimized web site is different from
When using a browser to transform XML (Google Chrome or IE7) is it possible
I'm using browser automation for testing web sites but I need to verify HTTP
I'm attempting my first SSO integration using SAML 2.0. I've been using: http://www.codeproject.com/KB/aspnet/DotNetSamlPost.aspx?msg=3562384 as
Is there a way to detect what browser the request is made in the
Now that most modern browsers support AJAX and client-side requests without performing a POST,
Everyone remembers google browser sync right? I thought it was great. Unfortunately Google decided
I am writing a Browser Helper Object for ie7, and I need to detect

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.