Re: Maximum url length

2002-02-05 Thread karkoma

El Mar 05 Feb 2002 20:12, escribiste:
> Hi,
> It's not a good idea. Try changing GET to POST. In case you don't know -
> request uris are often cached, logged, etc, so sending any data, especially
> passwords in them is a suicide or worse.
>

I compound the uri internally in my servlet, encode it and do a POST. In fact 
tomcat shows me the doPost.
The question is: I KNOW that I'm using method POST and I know the generated 
uri is very long. Have you ever try to send so long uris? How to treat them? 
Can tomcat be configured to handle longer uris?

Thank you again.
Alberto


> http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2.1
> "The HTTP protocol does not place any a priori limit on the length of a
> URI. Servers MUST be able to handle the URI of any resource they serve, and
> SHOULD be able to handle URIs of unbounded length if they provide GET-based
> forms that could generate such URIs. A server SHOULD return 414
> (Request-URI Too Long) status if a URI is longer than the server can handle
> (see section 10.4.15).
>
>   Note: Servers ought to be cautious about depending on URI lengths
>   above 255 bytes, because some older client or proxy
>   implementations might not properly support these lengths."
>
> Greetings, deacon Marcus

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Maximum url length

2002-02-05 Thread karkoma

Hi...

I'm trying to send a long uri to Tomcat 3.3 but it complains with error code 
414, (414 Request-URI Too Long). However Apache can handle the same url.

Is there a way to tell Tomcat to admit long uris / urls??
Something like this

 lynx -dump 
"localhost:8080/ABC/myservlet?request=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0D%0A%3CGPPR%3E%0D%0A%09%3CFUNCION+type%3D%22UPDATE%22%3EcreateUser%3C%2FFUNCION%3E%0D%0A%09%3CAUTENTIFICATION%3E%0D%0A%09%09%3CCLIENT%3Ecesar%3C%2FCLIENT%3E%0D%0A%09%09%3CCLI_PASSWD%3Ecesar%3C%2FCLI_PASSWD%3E%0D%0A%09%09%3CUSER_LOGIN%3Ecesar%3C%2FUSER_LOGIN%3E%0D%0A%09%09%3CUSER_PASSWD%3Ecesar%3C%2FUSER_PASSWD%3E%0D%0A%09%3C%2FAUTENTIFICATION%3E%0D%0A%09%3CPARAMETERS+identype%3D%22MSISDN%22%3E%0D%0A%09%09%3CATTRIBUTE+name%3D%22USER%22+param%3D%22Y%22%3E%0D%0A%09%09%09%3COBJECT%3E%0D%0A%09%09%09%09%3CCLASS%3EUSER%3C%2FCLASS%3E%0D%0A%09%09%09%09%3CCONTENTS%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22TIMEOUTVALIDATE%22%3E%0D%0A%09%09%09%09%09%09%3CINT+val%3D%220%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22MASTERLOC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22N%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATT!
RIBUTE+name%3D%22PUBLIC%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22N%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22NAME%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22UserTest%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22MSISDN%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%2234686966458%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22USERDATA%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22Datos+de+Utest%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22IDPROFILE%22%3E%0D%0A%09%09%09%09%09%09%3CINT+val%3D%221%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22VALIDATED%22%3E%0D%0A%09%09%09%09%09%09%3CCHAR+val%3D%22Y%22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%09%3CATTRIBUTE+name%3D%22DATEINS%22%3E%0D%0A%09%09%09%09%09%09%3CSTRING+val%3D%22%!
22%2F%3E%0D%0A%09%09%09%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%09%09%09%3C%2FCONTENTS%3E%0D%0A%09%09%09%3C%2FOBJECT%3E%0D%0A%09%09%3C%2FATTRIBUTE%3E%0D%0A%09%3C%2FPARAMETERS%3E%0D%0A%3C%2FGPPR%3E%0D%0A"

Thanx.
Alberto

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: java.lang.OutOfMemory error

2001-12-11 Thread karkoma

In my tomcat 3.3. installation on GNU/Linux I use TOMCAT_OPTS environment 
variable to specify command line options. Something like this:

TOMCAT_OPTS="-Xms128m -Xmx256m" 

Alberto.

>  I using tomcat, running servlet and jsp.  Where
> > should I specify these options? in environment variable?
> >
> > Susan

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: What is mod ssl ?

2001-10-31 Thread karkoma

Take a look at http://www.modssl.org

You do not need to have SSL installed, it is only necesary if you plan to 
build a secure site.


El Mar 30 Oct 2001 17:58, escribiste:
> Hi,
> can someone tell me what is mod_ssl and
> why I have to load mod_ssl and mod_jk
> in httpd.conf to work with TC 4.0 and apache
>
> Tanks in advance
>
> DS.
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

--
To unsubscribe, e-mail:   
For additional commands, e-mail: