Dear all;
I've a little problem in downloading a file from a server. I've established an HttpUrlConnection to a specific URL; which is a url for .RM real audio file.
the url is like http://download.server.com/d1/d2/d3/file.rm
I've got the input stream from that connection which is the bytes of the RM file itself; and I've successfully saved it to my desk.
The problem is that now whenever I try to connect to this file (or any other file) on the same server; I get automatically redirected to the main page of the web site! and the input stream I get is the HTML code of the main page...(this also happens whenever I paste that URL in any browser or download manager program).
Is there any way to safely download this file or to connect to the web site in any other way and get that file?
thxx!
I've a little problem in downloading a file from a server. I've established an HttpUrlConnection to a specific URL; which is a url for .RM real audio file.
the url is like http://download.server.com/d1/d2/d3/file.rm
I've got the input stream from that connection which is the bytes of the RM file itself; and I've successfully saved it to my desk.
The problem is that now whenever I try to connect to this file (or any other file) on the same server; I get automatically redirected to the main page of the web site! and the input stream I get is the HTML code of the main page...(this also happens whenever I paste that URL in any browser or download manager program).
Is there any way to safely download this file or to connect to the web site in any other way and get that file?
thxx!