sample http api with cUrl