-
December 17th, 2011, 04:27 PM
#1
Download file - get REAL filename
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|