Length of URL...

S

suneet.taparia

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
 
A

Alun Harford

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.

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
 
O

Oliver Wong

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.

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
 
A

Adam Maass

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

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
 
M

Michael Powe

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

--
Michael Powe (e-mail address removed) 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top