replace hostname in rquest