rewrite http-client to use command line argument to send either get or
post request