curl-users
Re: curl and Javascript based submit form
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 2 Apr 2009 20:55:00 -0600
Date: Thu, 2 Apr 2009 20:55:00 -0600
On Thu, Apr 02, 2009 at 07:00:29PM +0000, R B wrote:
> Thanks.
> But the file name in url http://localhost:8080/test_20090319.zip changes every
> day so I can not use plain 'curl -O http://localhost:8080/test_20090319.zip'
> command.
> Based on LiveHTTPHeader output, I enabled cookies, set referrer header and
> user-agent as below but all I get in response is the content of test.jsp .
What do you expect when you download the wrong URL? If that file changes
every day in an unpredictable fashion, then you'll have to parse the HTML
to extract that URL, then have curl download it in the fashion I mentioned.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has moved ------------------------------------------------------------------- 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.htmlReceived on 2009-04-03