cURL / Mailing Lists / curl-users / Single Mail


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

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

On Thu, 5 Mar 2009 00:43:25 -0800, "Robert Baker"
<> 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:
> Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)"
> ",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
best thing is to load URL thanks to a file and "-K" switch
List admin:
Received on 2009-03-05