if ($errno === 0
) { // Connection issue
throw new Exception(rtrim($this->connect_error
), 'fsockopen.connect_error'
);
} throw new Exception($errstr, 'fsockopenerror', null,
$errno);
} $data_format =
$options['data_format'
];
if ($data_format === 'query'
) { $path = self::
format_get($url_parts,
$data);
$data = '';
} else { $path = self::
format_get($url_parts,
[]);
} $options['hooks'
]->
dispatch('fsockopen.remote_host_path',
[&
$path,
$url]);
$request_body = '';
$out =
sprintf("%s %s HTTP/%.1F\r\n",
$options['type'
],
$path,
$options['protocol_version'
]);
if ($options['type'
] !== Requests::TRACE
) {