cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl dowload from a post form

From: R B <rossbertoloni_at_hotmail.com>
Date: Tue, 31 Mar 2009 17:46:28 +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
RB

_________________________________________________________________
Reinvent how you stay in touch with the new Windows Live Messenger.
http://go.microsoft.com/?linkid=9650731

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