×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Oct 2006
    Posts
    157

    HttpConnection - Can't post too often

    Hi,

    I'm trying to post data a little bit at a time to a web page. With other words I'm using a loop with an httpConnection, a .setRequestProperty(), a .openDataOutputStream() that writes and flushes, and a .getResponseCode() that always gets HttpConnection.HTTP_OK.

    The problem arrives when I post data too often, some data chunks are skipped, even though I wait for the response code. If I put a sleep(1000) after each post it works. So can the web server be not ready even if it has returned a HTTP_OK? Wouldn't the next post fail then, which would not result in HTTP_OK?

    I can't figure out why I have to wait if I got an HTTP_OK.
    Please help!

    Erst

  2. #2
    Regular Contributor
    Join Date
    Oct 2006
    Posts
    157

    Re: HttpConnection - Can't post too often

    Ignore this, server-side error

Similar Threads

  1. HttpConnection POST --> more than 2048b / chunked
    By krasnoff in forum Mobile Java General
    Replies: 14
    Last Post: 2009-03-14, 07:43
  2. Problem with HTTP POST
    By thathoo in forum Mobile Java General
    Replies: 2
    Last Post: 2006-12-18, 18:23
  3. Problem to make httpconnection using POST method on Midp1.0 handsets
    By pankaj_hotwani in forum Mobile Java General
    Replies: 0
    Last Post: 2006-11-22, 11:28
  4. HTTPConnection POST request
    By divyas in forum Mobile Java General
    Replies: 2
    Last Post: 2006-02-20, 03:46
  5. HttpConnection & POST
    By luky29 in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2004-03-10, 14:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×