Changed request method to CURL instead of HttpRequest