cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Wrong size of a file when downloading

From: JAIME DURAN RODRIGUEZ <jaimed_at_tid.es>
Date: Wed, 24 Jun 2009 10:18:28 +0200

On Tue, 23 Jun 2009, Daniel Stenberg wrote:

> Eeek. This is a non-compliant response. The server is stupid.
> The response is supposed to be:
>
> "213 77824"
>
> No commas and no aditional "bytes". We could possibly let the
> curl parser just ignore special characters in the middle of
> the number (the comma) but I'm not at all convinced that is a
> very good idea in general.

Well, since we can't divide a byte (i.e. is impossible to have
decimals in the SIZE response) maybe ignoring commas or even
dots is not a bad idea.

Could modify the parser myself to fix it locally?

Thanks Daniel

Regards,
Jaime.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-06-24