Cakephp2のHttpSocket
App::uses('HttpSocket', 'Network/Http'); $http = new HttpSocket();
https://book.cakephp.org/2/ja/core-utility-libraries/httpsocket.html
以下、Cakephp4では \Http\Client
ライブラリになります。
Cakephp4のClient
use Cake\Http\Client; $http = new Client();
https://book.cakephp.org/4/ja/core-libraries/httpclient.html