Implement single method to perform HTTP request using CURL and handle results