cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: : Re: Trying to download a filled in webpage

From: Sebastien WILLEMIJNS <sebastien_at_willemijns.com>
Date: Thu, 05 Mar 2009 10:37:32 +0100

On Thu, 5 Mar 2009 00:43:25 -0800, "Robert Baker"
<rbaker_at_bakersoftwaretechnologies.com> said:

> curl -Lo mee -c cookies.txt -b cookies.txt --dump-header headers.txt -A
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6)
> Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)"
> "http://local.live.com/default.aspx?v=2&rtp=adr.6200%20South%20Main%20Street,Ashtabula,Ohio,~adr.4338%20Lake%20Road%20West,Ashtabula,Ohio~adr.2300%20West%2019%20street,Ashtabula,Ohio"
> -H "Content-type:"
>
> If you cut and paste this in a dos Box, you will get the correct results
> If you run this from a .bat file. you will not get the correct results.
> To see the difference all you need to do is load the "mee" file in an
> editor and look for the string "Trip:"(without quotes). The command run
> pasted into the Dos Box will show on the next line:
> class="distance">20.0 km
>
> If you run it from a .bat file. the next line will show
> class="distance">0.0 km
>
> Why the difference?

In DOS some characters are forgotten when it has been running in a DOS
box
best thing is to load URL thanks to a file and "-K" switch
-------------------------------------------------------------------
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-03-05