add timeout option for sending request to http server