Curl error: The requested URL returned error: 400 Bad Request