cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl and Javascript based submit form

From: R B <rossbertoloni_at_hotmail.com>
Date: Wed, 1 Apr 2009 19:58:40 +0000

Any idea how I can use curl to download file from Javascript based submit button?
Here is the form page(test.jsp) :

<html>
<head>
<title>Untitled</title>
<SCRIPT language="JavaScript1.2">
function poponload()
{
    var url='http://localhost:8080/test_20090319.zip';
    testwindow= window.open (url);
}
 </script>
</head>

<body>

<form method="GET" action="test.jsp" onsubmit="javascript:poponload()">

    <input type="submit"
        name="download"
        value="OK"
        />
</form>

</body>
</html>

 

_________________________________________________________________
Internet Explorer 8 helps keep your personal info safe.
http://go.microsoft.com/?linkid=9655581

-------------------------------------------------------------------
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-04-01