I've run into some problems uploading some ascii and binary data from a
Java applet to a cgi-script running on Apache 1.0.5 HTTP server under
FreeBSD using the POST method.
Apparently the server just can't get the content length out of the stream
I send. On a MS IIS 2 server it worked to some extent, though when the
length crossed some certain limit, the IIS recieved just the first 900
bytes (I suspect thats some kind of default for cases it can't read
Just in case i paste here the piece of code i use to initiate data
Socket s = new Socket("hostname", 80);
DataOutputStream out = new DataOutputStream(s.getOutputStream());
out.writeBytes("Content-length: " + length + "\n");
Does anyone have any sample code or reference URL's to check?