curl get method is working