SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jan 2003
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation How many characters in a querystring ?

    Simple question i think ! but i dont know the anwser anyway !

    How many characters can be passed from one page to the next in the querystring ?

    Thx
    Iwan

  2. #2
    Bangarang! Karloff's Avatar
    Join Date
    Mar 2003
    Location
    Manchester, United Kingdom
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The limit on the domain part of the address is 255 characters while the complete GET limit is 1024 characters, I believe. It used to vary from browser to browser and it may even be that current browsers allow much more yet that is bad practice. If you need to pass around larger chunks of data use POST.
    Karl


    I'm desperately trying to figure out why Kamikaze pilots wore helmets. - George Carlin

  3. #3
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bang on, but given the number of buffer exploits in recent years, I would have thought that modern browsers would be far more likely to follow specifications/limits like that to the letter in order to reduce exploit potential. However, I may well be wrong. Either way, as you say, GET should be used for a few simple script parameters, not reams of data.
    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •