Send HTTP requests on t1 in a single function