[fix] run HTTP requests in a thread