zeraxis_ee
asked on
HttpUrlConnection GetInputStream()
I am working on a Linux machine coding in Java... I am using HttpUrlConnection GetInputStream() to download files from a site
Http://www.somesite.com/somefile.txt
Http://www.somesite.com/somefile.avi
The problem is that it will only download files with certain extensions, such as .txt, mpeg, sql and so on.
But I need to download many media files such as .flv, .avi
I realise that .flv and .avi is not recognised on my Linux machine, because when I type in Http://www.somesite.com/somefile.avi in the browser, it comes back with page not found.
how can i get around this problem?
Many thanks...
Marika
Http://www.somesite.com/somefile.txt
Http://www.somesite.com/somefile.avi
The problem is that it will only download files with certain extensions, such as .txt, mpeg, sql and so on.
But I need to download many media files such as .flv, .avi
I realise that .flv and .avi is not recognised on my Linux machine, because when I type in Http://www.somesite.com/somefile.avi in the browser, it comes back with page not found.
how can i get around this problem?
Many thanks...
Marika
ASKER
Thanks... you were right about the .avi.
However, the problem still remains. If I am trying to download files where the file type is unknown, it will not download. For example .flv .properties etc.
I double checked that the files exist in the file system, but when I am trying to open in the browser, because it is unknown file type... I get page cannot be found. The web application, where the files are being downloaded from is running on IIS... I am guessing I need to set something on IIS to recognise those files.
Any ideas?
Thanks
However, the problem still remains. If I am trying to download files where the file type is unknown, it will not download. For example .flv .properties etc.
I double checked that the files exist in the file system, but when I am trying to open in the browser, because it is unknown file type... I get page cannot be found. The web application, where the files are being downloaded from is running on IIS... I am guessing I need to set something on IIS to recognise those files.
Any ideas?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can also try the command: wget http://www.somesite.com/somefile.avi
There are many ways to obsfucate locations of files.