HttpUrlConnection...Help!

Joined
Jan 25, 2008
Messages
1
Reaction score
0
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top