add httpRequest java code