Using curl instead of net::http and added test scripts