I found this really simple code written in Python:
opener = urllib2.build_opener()
data=opener.open(request)
data.read(1024)
length=ord(data.read(1))*8
print data.read(length)
and I want to rewrite it in Java. Can you help me? I can't seem to find what the data.read() methods are for, Python docs really confuse me. Newbie here.