Working threaded http, with proxy support too