Weird returned page from curl cmd

bruce badouglas at gmail.com
Wed Apr 3 10:53:26 UTC 2013


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20130403/5b01d9ae/attachment.html>


More information about the users mailing list