use a thread to http post