« Previous Next »

Thread: What is the max lenght of query string in iis7 vista and windows server 2003?

Last post 10-02-2009 6:15 PM by krolson. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 10-02-2009, 5:45 AM

    What is the max lenght of query string in iis7 vista and windows server 2003?

    Hello.

    What is the max lenght of query string in iis7 vista and Windows server 2003?
    I have a query string of more than 6000 characters...... Is this allowed?

    Settings are as followed in vista:
    Max allowed content lenght:4294967295
    Max URL length:4294967295
    Max query string:4294967295

    Thanks

     

     

  • 10-02-2009, 9:14 AM In reply to

    Re: What is the max lenght of query string in iis7 vista and windows server 2003?

    I think IIS is capable of that however you also have to look at the browsers and if they are capable of processing massive query strings.

    Have you tried it? what errors, etc do you get back?

    And why on earth do you want a query string this long?

     

  • 10-02-2009, 11:36 AM In reply to

    Re: What is the max lenght of query string in iis7 vista and windows server 2003?

    Note that by default Request Filtering settings for Vista (IIS7) are as follows:

    Max Allowed Content Length = 30000000

    Max Url = 4096

    Max Query String = 2048

    You can adjust these in applicationHost.config directly (see Filter Based on Request Limits section, here: http://learn.iis.net/page.aspx/143/how-to-use-request-filtering/) or through inetmgr (open inetmgr, open the Request Filtering feature, click the Edit Feature Settings... task in the Actions pane (right-side). This will pop up a dialog to set the request limits, and can be done at the server/site/app level).

  • 10-02-2009, 11:40 AM In reply to

    Re: What is the max lenght of query string in iis7 vista and windows server 2003?

    In WS2003 you have the option of using URLScan to limit query string length. It has similar defaults (smaller default MaxUrl of 260) in the urlscan.ini file, which can be configured as desired. 

    However, as Rovastar notes, the server is probably not your limiting factor.

  • 10-02-2009, 5:29 PM In reply to

    Re: What is the max lenght of query string in iis7 vista and windows server 2003?

    I have made all the changes restarted vist iis7 and still i get the 414 error the querystring is only 50.000 characters long and the server should be able to parse it.

    I do not get any errors from the latest stable version of FireFox.

    Please advice

  • 10-02-2009, 6:15 PM In reply to

    Re: What is the max lenght of query string in iis7 vista and windows server 2003?

    If you are able to view your content using FireFox, then the server is probably able to parse the URI - the issue seems to be occuring in the browser (Internet Explorer, correct?).  

    To check if IIS is indeed having a problem parsing your query string, please try enabling Failed Request Tracing (directions here: http://learn.iis.net/page.aspx/266/troubleshooting-failed-requests-using-tracing-in-iis-70/). This could tell you what request IIS sees and what module is causing the request to fail (or confirm that IE is the culprit).

    If IE is the culprit, on searching the internet for references to this type of error, I ran across two potential solutions:

    1. the date/time settings for the client computer are incorrect. Resetting them solves the problem.

    2. deleting the cookies (presumably because it reduces the URI length).

    It's also possible that if you are not using the most current version of IE (8), upgrading may help - but that's just a guess.

     

     

Page 1 of 1 (6 items)
Microsoft Communities