Simple Java HTTP implementation