Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Length of URL...

Thread view: 
suneet.taparia@gmail.com - 24 Apr 2006 12:47 GMT
Hi,

Can anyone tell me what is the maximum length of URL I can have.

See the problem is that I need to send request from JSP to JHTML and in
my JHTML I'm not able to get the request parameters sent from the JSP.
Is there a way I can send it.

One way I found that I can have parameters attached in the URL and send
it across to JHTML, but I'm confused as to how much is the limit for
those parameters that I can attach in the URL.

Can anyone help me with that.

Thanks in advance
Alun Harford - 24 Apr 2006 12:57 GMT
> Hi,
>
[quoted text clipped - 9 lines]
>
> Can anyone help me with that.

In theory, there is no limit.
In practice, IE imposes a limit of 2,083 bytes.
Because nobody could need more than 640k. :-)

Alun Harford
Oliver Wong - 25 Apr 2006 21:59 GMT
> Hi,
>
[quoted text clipped - 9 lines]
>
> Can anyone help me with that.

From RFC 2068 http://www.faqs.org/rfcs/rfc2068.html
<quote>
Note: Servers should be cautious about depending on URI lengths
above 255 bytes, because some older client or proxy implementations
may not properly support these lengths.
</quote>

   - Oliver
Adam Maass - 26 Apr 2006 05:42 GMT
> Hi,
>
[quoted text clipped - 11 lines]
>
> Thanks in advance

The relevant RFCs require browsers and servers to support URLs of at least
255 characters. While this isn't very much, in practice most browsers and
servers will handle much longer.

-- Adam Maass
Michael Powe - 03 May 2006 19:39 GMT
>>>>> "suneet" == suneet taparia@gmail com <suneet.taparia@gmail.com> writes:

   suneet> Hi, Can anyone tell me what is the maximum length of URL I
   suneet> can have.

   suneet> See the problem is that I need to send request from JSP to
   suneet> JHTML and in my JHTML I'm not able to get the request
   suneet> parameters sent from the JSP.  Is there a way I can send
   suneet> it.

   suneet> One way I found that I can have parameters attached in the
   suneet> URL and send it across to JHTML, but I'm confused as to
   suneet> how much is the limit for those parameters that I can
   suneet> attach in the URL.

Internet Exploder limits a URL to 2048 bytes.  That is a browser
limitation.  On the server side, it varies and is configurable.  The
default configuration for Apache 2.x is 8190 bytes.  The default for
IIS 6.0 is 16K.  I have seen log file entries with nearly 10K chars,
so there are people out there creating ridiculously long strings.

http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestline

Thanks.

mp

Signature

Michael Powe        michael@trollope.org        Naugatuck CT USA
"I wrote what I did because as a woman, as a mother, I was oppressed
and brokenhearted with the sorrows and injustice I saw, because as a
Christian I felt the dishonor to Christianity, -- because as a lover
of my country, I trembled at the coming day of wrath." -- H.B. Stowe



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.