urlconnection

Difference between URLConnection, HttpURLConnection and HttpsURLConnection

I want to ask a basic problem in Java. What is the difference between URLConnection, HttpURLConnection and HttpsURLConnection (with SSL). Under what conditions, which one should I use? Can provide some examples or refer to me? Thank you very much. ...

URLConnection does not get the charset

I'm using URL.openConnection() to download something from a server. The server says Content-Type: text/plain; charset=utf-8 But connection.getContentEncoding() returns null. What up? ...

Servlet to handle both applet communication and http requests

Hi, I'm building a solution where a servlet on tomcat6 handles input from another machine by providing a jsp web page. I'd also like the same servlet to communicate with an applet on the same machine to show some results and perform a few tasks. I'm able to connect from the applet to the servlet using a URLConnection but when receving ...

Android: Trying to get data from youtube api

Hi guys, I'm attempting to get data from http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured?&start-index=1&max-results=15&v=2 and print the titles of the videos, but I get an exception in the line int responseCode = httpConnection.getResponseCode(); what's the problem? Any other way to get th...