update web_tools to handle HTTP redirect