cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET