Remove duplicated code by modifying HTTP_HttpSendRequest so that it