cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Using curl to get files matching a pattern

From: R B <rossbertoloni_at_hotmail.com>
Date: Thu, 26 Mar 2009 21:49:31 +0000

Hi
I need to download a zip file from a page like the following :
<form method="post" action="testfile.zip" >
    <input type="submit" name="download" value="OK"/>
</form>

I want to use curl to click on download button and download the file (The name of the zip file is not known and changes everyday, that's why I need to do something like this)
I tried the following, but curl just returns the page html, and not the zip file

curl -O -k -d "download=OK" "http://localhost:8080/test/download.jsp"

Thanks

_________________________________________________________________
Experience all of the new features, and Reconnect with your life.
http://go.microsoft.com/?linkid=9650730

-------------------------------------------------------------------
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-26