use GET for getip and POST for api operations