curl to wget and http server