Код: Выделить всё
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $this->login_path);
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, "login_username=login&login_password=123");
curl_setopt($curl, CURLOPT_COOKIE, $this->cookie);
curl_setopt($curl, CURLOPT_URL, $category);
$results_page = curl_exec($curl);