commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nigel Rantor <wig...@wiggly.org>
Subject HTTP Client File Upload Question
Date Thu, 23 Sep 2004 12:05:40 GMT

Hi all,

I'm being bitten by a weird bug and I have a feeling it's because I'm 
not sure about content-transfer encodings vs charsets.

I'm using httpclient 2 to upload to a perl CGI.

Uploading from a browser works fine.

Uploading from my program works fine for text files.

Uploading from my program fails for binary files. The resulting file is 
corrupted, it seems as if the two high bits of every byte have been 
zeroed, so a byte val of FF gets transferred as 3F.

Does this make any sense to anyone?

TIA,

   N

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message