Hello,
I am experiencing strange problems with an http-proxy used at a large company.
I would like to upload data with about max. 20kB, but I realieable
only get 283byte up.
I upload the data doing:
PutMethod putMethod = new PutMethod(upLoadURL);
putMethod.setDoAuthentication(true);
putMethod.setRequestBody(new
FastByteArrayInputStream(payLoad));
server.getHttpClient().executeMethod(putMethod);
And on the servlet I read the whole data into a array using:
FastByteArrayOutputStream bos = new FastByteArrayOutputStream(is.available());
int read = 0;
while ((read = is.read()) != -1)
{
bos.write(read);
}
return bos.toByteArray;
I need the data as byte[] anyway because its low-traffic and only
small packages are sent, I don't care for performance for now
(allocations in FastBufferedOutputStream and copying in toByteArray).
Any idea what could be wrong?
I already tried to send dummy-bytes back to the server while reading
the put-data into the array to avoid response-timeouts but that didn't
help :-/
Any ideas what could be wrong? The code works quite well without a
proxy in between.
Thank you in advance, lg Clemens
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]