cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Weird returned page from curl cmd

From: bruce <badouglas_at_gmail.com>
Date: Wed, 3 Apr 2013 06:53:26 -0400

to all the curl/fedora guys...

the solution

The expansion isn't done by curl, but by the server based on the request
headers.

If I add: -H "Accept-Language: en-EN"
to the command line I get the expected "51%".

Fabian

On Wed, Apr 3, 2013 at 6:02 AM, Thomas Waldecker <thomas.waldecker_at_gmail.com
> wrote:

> Hi Bruce,
>
> Trying to do a simple curl fetch of a page. I get the data, but when I
>> compare the page to what I see in the FF/Opera browser, I get a difference.
>>
>> The key section on the browser is:
>>
>> 51% Men, 49% Women
>>
>> The same section from the curl is:
>> 51.02081505702209%
>> Men,
>> 48.97918494297791%
>> Women
>>
>> The actual test curl cmd I use is:
>>
>> curl -o "dee.txt"
>> http://www.collegeview.com/schoolfacts/auburn-university-main-campus/figures
>>
>> It appears that the "%" causes some sort of expansion/rounding to occur
>> in the data...
>>
>
> I have never seen something like this. I just tried it myself. Even
> changed the user-agent but got the same result.
>
> Thomas
>
> --
> users mailing list
> users_at_lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-03