adding Host function for HTTPSession,update the redirect to 307,