cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: using curl to download files where the url does not end in file.ext

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 12 Sep 2007 20:38:15 -0700

On Thu, Sep 13, 2007 at 04:25:08AM +0100, scatterp wrote:
> Hi
> I am new to the list please excuse any mistakes in my etiquette.
> I read the rules
>
> curl.exe "https://adwords.google.com/select/trafficestimatorsandbox?cmd=
> TrafficEstimatorSandbox&keywords=keyword1%0Akeyword2%0Akeyword3&currency=USD&
> price=&budget=100&language=*&geoselection=&countryList=*" --user-agent lynx
> --cookie-jar cookiefile --cookie cookiefile
> how could i download the csv file included in the source from this download ?
> its link looks like this:
> https://adwords.google.com/select/TrafficEstimatorSandbox?mode=csv&
> resultcacheid=1189652258446
> and when you download that with curl you do not get the csv file
>
> I am guessing i am using the wrong format on the command line?

More likely, you are not "logging in" to the server first. You need to
perform the log in sequence first to obtain the correct cookies before you
try to download the file itself.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-09-13