add support for POST request
implements multi-thread polling basics, details to be added later