I have a problem in my hand.
I have a URL, And when i initiate the connect to this url and execute url.getContent().
The response is of type sun.net.www.protoc
You should use the openStream method of the url class.
Code snippet:
InputStream in = url.openStream();
BufferedReader reader = new BufferedReader(new InputStreamReader());
String line = reader.readLine();
If the output is not in a readable string format, then use:
InputStream in = url.openStream();
byte[] buffer = new byte[512];
int bytesRead = in.read(buffer);