Hi Daniel,

thanks :-)
Was in windows. You got the nail on the head.

Had missed out the binary modifier when reading the docs... :-(

Regards,
Ashish

Daniel Harple wrote:
> On Aug 2, 2006, at 1:35 AM, mataal / gmail.com wrote:
>
> > Any ideas where these extra bytes are coming from? Do it need to
> > 'chomp' my response chunks?
>
> Are you on Windows? You may need to write the file in binary mode:
> 
> 	File.open(..., 'wb') do |f|
> 	  ...
>          end
> 
> -- Daniel