views:

41

answers:

0

I am using jQuery to send larger document via POST method to server (which should store it in the database).

If I send the same request multiple times, sometimes it works fine (completes in ~500ms) and sometimes it fails. When it fails, it waits about 1 minute and then I get server error (indicating that no params were recieved).

I can't figure out why it somethimes fails and sometimes works with the same POST params.

Document is ~11kb long. If I send small document (~10b) it seems to work.

Web application in question uses JSP technology.

Server is localhost, and I am using https.

It seems to work better in Ie than in Ff (!?).

This is how my JavaScript function that sends request looks like: http://pastebin.com/XDWf4Xyq

Has anybody encountered similar problem or does anybody know what the problem might be. Thanks..