How to connect cURL in wordpress?

Please tell me how to run these lines ?
<blockquote>$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url.($data!=null ? '?'.$this->prepare_get_params($data) : "));
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_HTTPHEADER, $this->headers($token));</blockquote>

Issues Call to undefined function curl_init()
April 3rd 20 at 17:32
1 answer
April 3rd 20 at 17:34
Well, you at least gone on a spree before writing the question. You just have not configured php curl on the server
Yes Google, I can not give fret(
Please give a link or instructions on how to configure php curl
The second day on the table forehead beating - uriel78 commented on April 3rd 20 at 17:37
@uriel78, look here
https://wp-kama.ru/function/wp_remote_request - Sandra_Quitzon57 commented on April 3rd 20 at 17:40

Find more questions by tags WordPress