HttpURLConnection - works with '.html' but nothing else, why?

J

junk1

Hi, im using HttpURLConnection to read a URL. This works fine when
pointed at a file ending in .html, but not with any other post fix - ie
..jsp, etc even though the content is identical.

I assume that this might be something to do with mime types, but im not
sure what to do about it.

Anyone have any ideas?


Thanks

David Bevan
http://www.davidbevan.co.uk
 
J

John C. Bollinger

Hi, im using HttpURLConnection to read a URL. This works fine when
pointed at a file ending in .html, but not with any other post fix - ie
.jsp, etc even though the content is identical.

I assume that this might be something to do with mime types, but im not
sure what to do about it.

Anyone have any ideas?

Care to show any of the code you're having trouble with? You're not
going to get much help if we have to speculate about what your code is
actually doing. A short, compilable example that exhibits your problem
would be best.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top