Hi all,

I am trying to download a file in java from a URL and get the returned filename that the fileserver provides, NOT the URL "filename".

For example, take this example: http://domain.com/download.php?file=latestversion

The webserver might then reply with a file called Setup5.exe

Using the getFile() function gives me "download.php?file=latestversion" but what I REALLY want to get is the actual filename, in this case, Setup5.exe

Any ideas?

Thank you