use shaded fat jar with an embedded jetty server, executing both chunked and regular posts every 2 seconds
use apache http client4 which does the chunked encloding requests