Simple java version of Http proxy