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: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Wed, 12 Sep 2007 23:08:45 -0500

On 9/12/07, scatterp <scatterp321_at_yahoo.co.uk> 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?

I tried looking at your first link in a browser - it's a form, so to
get to the next stage you need to post the form. There are at least 3
hidden variables and a bunch that you probably need to set values for.

I don't do Windows scripting, so that's all I can tell you.

Ralph Mitchell
Received on 2007-09-13