Here is the form page(test.jsp) and LiveHTTPHeader output.
testwindow= window.open (url);
GET /test/test.jsp?download=OK HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:188.8.131.52) Gecko/2008120122 Firefox/3.0.5
HTTP/1.x 200 OK
Date: Wed, 01 Apr 2009 23:47:18 GMT
Server: Jetty/5.1.x (Windows XP/5.1 x86 java/1.5.0_04
red neck *
You can get the url parsing the response and send a new request to the url extracted.
$snoopy = new Snoopy;
$response = $snoopy->results;
preg_match("#var url\=\'(.*?)\'\;#", $response, $url_extracted);
$snoopy->fetch( $url_extracted );
$content_of_file = $snoopy->results;
header('Content-Disposition: attachment; filename="'.date("Ymd").'.zip"');
Do you understand ?
I should have provided more details.