Hi,
Thanks for replying me!
Unfortunatly the HTTP call is the only way I have to submit my information...
Ideal would be to send a POST HTTP to tht URL with the same connection, I mean 
the same socket where the HTTP service is up. The strange is that using a php 
program, I can POST the HTTP using the same connection for all my requests. 
But I have to use the HTTP Servlet in stead of this php program. I believe 
that the performance of my machine will increase if I avoid a huge amount of 
sockets connected/disconnected.

Can any one help me?

Citando QM <[EMAIL PROTECTED]>:

 On Tue, May 25, 2004 at 12:28:04PM +0100, [EMAIL PROTECTED]
 wrote:
 : I have an HTTP Servlet that treats somes information and then make a 
 : GET URL with that information, the problem is that everytime the HTTP
 Servlet 
 : is requested to treat the information and then do a GET URL I'm opening a
 new 
 : connection to that URL and than close the connection. So if I have 10000 
 : requests I will open and close about 10000 sockets to GET the URL. Is there
 a 
 : way to avoid this?
 
 If I understand your question, there's no good way around this if you
 *must* use an HTTP call.  HTTP is all about stateless, quick-hit
 requests, and it sounds like you're aiming for more of a stateful,
 constant-connection protocol.  Furthermore, if you're opening
 connections to different hosts each time, then reusing the same socket
 is moot anyhow.
 
 Is it a requirement that you perform an HTTP call?  Could you get this
 information, say, from a database?
 
 -QM
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 ---------------------------------------------------------------------
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



__________________________________________________________
Quanto gasta de Acesso � Internet? Fa�a as contas!
http://acesso.portugalmail.pt/contas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to