Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old June 5th, 2000, 11:31 AM
CTD CTD is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 20 CTD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Just wondering the length limit when using the "get" method on a form. Is there a maximum length for a query string that a web browser can handle? And is there a similiar limit for the "post" method.

Thanks.

Reply With Quote
  #2  
Old June 9th, 2000, 07:48 AM
Adrian2 Adrian2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: London, England
Posts: 251 Adrian2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I'm sure there must be a length limit for a URL query string but I don't know what it is. You could try testing with the maximum amount of data you're expecting to receive.

I know that there's no similar limit for POST as this is just returned into the standard input, so if you're expecting a lot of data this is the way to go.

Also, long, complex query strings confuse the hell out of users when they see it in their browser's address line. POST is much neater.

Reply With Quote
  #3  
Old June 9th, 2000, 08:40 AM
CTD CTD is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 20 CTD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks. makes sense to me.

Reply With Quote
  #4  
Old June 9th, 2000, 06:19 PM
pushcart pushcart is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 1 pushcart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I believe that URL strings (in browsers, anyway) are limited to 255 characters and that may be the limit for a get post.

Although the post method looks cleaner for the user, it often doesn't allow the user to refresh the generated page, or does so only with an ugly dialog box.

Also some browsers (NN 4.0x for the Mac, for example) don't work when you choose to save a dynamically post-generated page. (File -> Save As).

------------------
+++++++++++++++++++
Paul Burney, Webmaster
UCLA GSE&IS
webmaster@gseis.ucla.edu
+++++++++++++++++++

Reply With Quote
  #5  
Old June 9th, 2000, 06:19 PM
biolight biolight is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 3 biolight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well, as you realize it is browser specific, and in recent releases browser manufacturers have extended the limit on how many characters you can type.

However, in the 5 years I have been working on the web, I have always used a 1000 character limit (which means that in name value pairs (x=y) you could fit somewhere between 250-300 pieces of information.

But, if you need to ask this question, it's pretty damn obvious you shouldn't be using the querystring to do what you're doing. ;-0

Lol.

Best to you,

JD http://theDogPile.com

Reply With Quote
  #6  
Old June 9th, 2000, 06:22 PM
biolight biolight is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 3 biolight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm using NN 4.x for the mac (right now!) and I can save dynamically generated content without a problem. I do ASP, JSP mod_perl, PHP and client side work on this mac. That's not true IMHE. Tell me what specifc version were you using?

But sometimes you do run into bugs in specific browser versions (so you might be right sometimes ;-).

Have a good one.

------------------
=-=-=-
Word.
http://theDogPile.com
http://OurBox.com/

Reply With Quote
  #7  
Old June 9th, 2000, 06:27 PM
biolight biolight is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 3 biolight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok.

I just went and checked. IE 5 for the mac (the new IE version) carried 2600 characters without a hitch. I only stopped because my hand got tired (well, actually that and my damn kitten jumped up on my leg after sharpening his claws =B^O )

Someone else post another browsers limits!

JD

------------------
=-=-=-
Word.
http://theDogPile.com
http://OurBox.com/

Reply With Quote
  #8  
Old June 9th, 2000, 11:30 PM
heh heh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 1 heh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am not sure that it is browser limited as it is a host or server limitation. The GET method appends the form user data to the end of the URL (everything past the '?' mark), and the server software will put this information in the QUERY_STRING environment variable for use by the script processing the form data. Some servers allow longer QUERY_STRING length for the GET method than others. So you should probably check with your server. And while GET is still the default method if no method is specified, it is not very secure. The POST method opens a 'stream', by standard input, to carry the data to the processing script, and is more secure than GET.
When you use a browser that informs you of an insecure transmission, you may get a notice when using the POST method, while the GET method will not trigger a notice. The POST method, as far as I know, has no noticable length limit.
Hope this helps.
Ed

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Form Data


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway