test rest service with curl and wget