Make http request in a background thread

Signed-off-by: Umair Khan <omerjerk@gmail.com>