Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any limitation with GET method ?

Status
Not open for further replies.

sujala

Programmer
May 6, 2003
10
0
0
IN
Is there ny limitation with GET method ? like no of chanraters that can be sent as QueryString. If there is any restriction on the length of the URL, then it is possible. I have heard from many people that the URL cant be more than 255 characters. But is this server dependent?


thanks in advance.
 
it is not server dependent, it is always 255.

another problem is u cannot send dat that has got spaces (if there are then u have to undergo the process of encoding it and then decoding it).

Known is handfull, Unknown is worldfull
 
post methods always a better approach than get method.

for example:

1st is convenient and easy!
---------------------------
if you have 100 fields in a form, you can easily pass all 100 fields value to another page.
whereby for get method, imagine how much work you have to do in order to pass those 100 fields value? if i am not wrong, the querystring limitation is 4k.

2nd, security problem.
----------------------
post method provide better security than get method as it is hidden unless you know how to snip :p
for get method, you can easily get the query string by looking at the url or just right click on look at the property.
 
POST method using FORM submission is recommended unless you want to use hyperlinks or input buttons where GET method using QUERYSTRING is then appropriate.
 
Though GET has a limitation of characters, its much larger than 255 characters. Maximum URL Length Is 2,083 Characters in Internet Explorer. ( So the maximum no of characters sent as QueryString in the GET method will be 2083 minus the URL of the site itself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top