how to send api request using curl