Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Just a thought: Is there a limit on url string?

Just a thought: Is there a limit on url string?

Scheduled Pinned Locked Moved The Lounge
sysadmintutorialquestion
18 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jpg 0
    wrote on last edited by
    #1

    If not, how to prevent someone from sending an URL with Gb size to a server?

    R M T 3 Replies Last reply
    0
    • J jpg 0

      If not, how to prevent someone from sending an URL with Gb size to a server?

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      This[^] article will shed some light on your question. /ravi

      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

      J A M 3 Replies Last reply
      0
      • R Ravi Bhavnani

        This[^] article will shed some light on your question. /ravi

        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

        J Offline
        J Offline
        jpg 0
        wrote on last edited by
        #3

        Wow! Thanks a lot!

        1 Reply Last reply
        0
        • R Ravi Bhavnani

          This[^] article will shed some light on your question. /ravi

          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

          A Offline
          A Offline
          AspDotNetDev
          wrote on last edited by
          #4

          That article is a bit dated and doesn't mention IIS. I wonder how new browsers handle long URL's. I'm guessing IIS has a configurable limit to reject a request (kind of like the default 4MB limit on file upload size... might even be the same setting).

          Driven to the ARMs by x86.

          J 1 Reply Last reply
          0
          • J jpg 0

            If not, how to prevent someone from sending an URL with Gb size to a server?

            M Offline
            M Offline
            musefan
            wrote on last edited by
            #5

            How much RAM you got?

            If my jokes make me laugh, then I have already succeeded with 100% of my target audience

            1 Reply Last reply
            0
            • A AspDotNetDev

              That article is a bit dated and doesn't mention IIS. I wonder how new browsers handle long URL's. I'm guessing IIS has a configurable limit to reject a request (kind of like the default 4MB limit on file upload size... might even be the same setting).

              Driven to the ARMs by x86.

              J Offline
              J Offline
              Joe Simes
              wrote on last edited by
              #6

              The Article wrote:

              Microsoft Internet Information Server The default limit is 16,384 characters (yes, Microsoft's web server accepts longer URLs than Microsoft's web browser). This is configurable.

              ;)

              The environment that nurtures creative programmers kills management and marketing types - and vice versa. - Orson Scott Card

              A 1 Reply Last reply
              0
              • J Joe Simes

                The Article wrote:

                Microsoft Internet Information Server The default limit is 16,384 characters (yes, Microsoft's web server accepts longer URLs than Microsoft's web browser). This is configurable.

                ;)

                The environment that nurtures creative programmers kills management and marketing types - and vice versa. - Orson Scott Card

                A Offline
                A Offline
                AspDotNetDev
                wrote on last edited by
                #7

                :doh: It may still be the morning, but I'm going back to bed.

                Driven to the ARMs by x86.

                R 1 Reply Last reply
                0
                • A AspDotNetDev

                  :doh: It may still be the morning, but I'm going back to bed.

                  Driven to the ARMs by x86.

                  R Offline
                  R Offline
                  Ravi Bhavnani
                  wrote on last edited by
                  #8

                  :) Nice sig, btw. /ravi

                  My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                  A 1 Reply Last reply
                  0
                  • R Ravi Bhavnani

                    :) Nice sig, btw. /ravi

                    My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                    A Offline
                    A Offline
                    AspDotNetDev
                    wrote on last edited by
                    #9

                    Somebody noticed. Yay! :-D

                    Driven to the ARMs by x86.

                    R 1 Reply Last reply
                    0
                    • A AspDotNetDev

                      Somebody noticed. Yay! :-D

                      Driven to the ARMs by x86.

                      R Offline
                      R Offline
                      Rage
                      wrote on last edited by
                      #10

                      What does ARM stands for, in this case (give us a hope to understand it ?)

                      A G M 3 Replies Last reply
                      0
                      • R Rage

                        What does ARM stands for, in this case (give us a hope to understand it ?)

                        A Offline
                        A Offline
                        austin hamman
                        wrote on last edited by
                        #11

                        im not sure what it STANDS for, but i do know its the processor architecture used in many mobile phones, which stands in opposition to x86/x64. as for the topic, i frikken hate url string limits...namely the limits on data uri that MS imposes. the browser neednt enforce url limits as long as the server enforces limits. the server will only accept x characters so the browser will only send x characters (since the first part is establishing a socket, then client sends a pack, the server accepts, and then the client sends another. it doesnt send the entire url and then the server acks parts of it at a time as far as i know) so there isnt the risk of someone DOSing someone with a long url. IE8's limit on data URI length (from what i understand they have thankfully increased this in 9, but if you are depending on these for a WebBrowser object in .net 4.0 you are SOL) has been a thorn in my side for some time.

                        T 1 Reply Last reply
                        0
                        • R Rage

                          What does ARM stands for, in this case (give us a hope to understand it ?)

                          G Offline
                          G Offline
                          greldak
                          wrote on last edited by
                          #12

                          Advanced RISC Machine

                          R 1 Reply Last reply
                          0
                          • G greldak

                            Advanced RISC Machine

                            R Offline
                            R Offline
                            Rage
                            wrote on last edited by
                            #13

                            Advanced risk machine ? :) Looks like someone has seen my car :rolleyes:

                            1 Reply Last reply
                            0
                            • J jpg 0

                              If not, how to prevent someone from sending an URL with Gb size to a server?

                              T Offline
                              T Offline
                              T800G
                              wrote on last edited by
                              #14

                              Maximum URL length is 2,083 characters in Internet Explorer. AFAIK that would be for IE7. You might also take a look at article 904846 but those numbers are probably made up.

                              1 Reply Last reply
                              0
                              • R Rage

                                What does ARM stands for, in this case (give us a hope to understand it ?)

                                M Offline
                                M Offline
                                Mark AJA
                                wrote on last edited by
                                #15

                                ARM = Advanced RISC Machine RISC = (This was the operating system first used by Acorn after the BBC Master in the 1980's) R.I.S.C. = Reduced Instruction Set Computer EG. The processor would run faster because the list of machine code commands was shorter.

                                1 Reply Last reply
                                0
                                • R Ravi Bhavnani

                                  This[^] article will shed some light on your question. /ravi

                                  My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                                  M Offline
                                  M Offline
                                  Mark AJA
                                  wrote on last edited by
                                  #16

                                  If Opera can handle up to 190,000 characters, but servers can only handle up to 16,384 characters, how can you test Opera with a URL longer than 16,384 characters? :~

                                  R 1 Reply Last reply
                                  0
                                  • M Mark AJA

                                    If Opera can handle up to 190,000 characters, but servers can only handle up to 16,384 characters, how can you test Opera with a URL longer than 16,384 characters? :~

                                    R Offline
                                    R Offline
                                    Ravi Bhavnani
                                    wrote on last edited by
                                    #17

                                    Mark AJA wrote:

                                    but servers can only handle up to 16,384 characters

                                    That's the default limit in IIS.  I expect it can be configured to be higher. /ravi

                                    My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                                    1 Reply Last reply
                                    0
                                    • A austin hamman

                                      im not sure what it STANDS for, but i do know its the processor architecture used in many mobile phones, which stands in opposition to x86/x64. as for the topic, i frikken hate url string limits...namely the limits on data uri that MS imposes. the browser neednt enforce url limits as long as the server enforces limits. the server will only accept x characters so the browser will only send x characters (since the first part is establishing a socket, then client sends a pack, the server accepts, and then the client sends another. it doesnt send the entire url and then the server acks parts of it at a time as far as i know) so there isnt the risk of someone DOSing someone with a long url. IE8's limit on data URI length (from what i understand they have thankfully increased this in 9, but if you are depending on these for a WebBrowser object in .net 4.0 you are SOL) has been a thorn in my side for some time.

                                      T Offline
                                      T Offline
                                      Trajan McGill
                                      wrote on last edited by
                                      #18

                                      A TCP packet is not likely to contain only one character of data. A URL is quite small enough, ordinarily, to fit within a single packet, and it would be very strange and inefficient to split it up into single-character chunks. I also think you might be confusing different layers of the network stack. IIS doesn't know anything about packets or acking. That happens at the TCP layer and below. IIS merely sees the request as an ordered data stream from which it reads until hitting the sequence of characters indicating the end of the request, and then responds to that request. It may well close the TCP connection if it keeps reading and reading and the request turns out to be too long, or send a response and then close the connection even sooner if the URL portion of the request is too long (a total request could be very long if a POST is involved), but there isn't some kind of byte-by-byte acceptance response from IIS to the browser. Typically IIS doesn't even send anything at all (although the underlying TCP mechanisms are sending packets in both directions) until the whole request is complete.

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • World
                                      • Users
                                      • Groups