$client
=
new
HttpClient(
'baidu.com'
);
if
(!
->get(
'/'
)) {
die
(
'An error occurred: '
.
->getError());
}
print_r(
->getHeaders());