Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Infinite HTTP POSTing from an applet to a servlet...

Thread Tools

Infinite HTTP POSTing from an applet to a servlet...

Posts: n/a
Hi. I've tried to do something, just to see how it works... :

I've programmed an applet that communicates with a servlet on a socket
that works on the HTTP layer between my applet and my servlet...

Here's what I successfully tried :

1- Instantiate a connection between applet and servlet
2- Send 30 GET requests and 30 POST requests
3- Close the connection

Here's what make me crazy :

When I do a loop like this :

While(true) SendDataByPostRequest(new
String("QWERTYQWERTYQWERTYQWERTY")); the data are well received by the
servlet, and the response from the servlet works fine... The outgoing
data and incoming data (from servlet) processing works for about 100
of times... Then no Exception is thrown by servlet, and no Exception
is thrown by applet... But the connection seems to be down...

Would anyone know why the connection *seems* to be shutdown ? Is it
really down ? Why no data go on transferring between applet and
servlet ?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP SOAP/HTTP GET/HTTP POST milan_9211 Software 0 01-10-2011 02:10 PM
infinite loop with http requests yawnmoth Java 6 11-20-2006 08:29 PM
Posting through HTTP POST in Applet vidhi Java 9 04-04-2006 03:22 AM
Everytime I hover cursro over a posting, it crosses out with red mark on it.. on every posting alanb ASP .Net 2 04-23-2004 02:23 PM
Cool Applet Cool Applet Alisher Fatykhov Java 1 08-06-2003 04:32 AM