Switched from CURL function to WP HTTP API.