zlibproxy/.history/test_20230101222611.php
2023-01-02 19:56:44 +08:00

11 lines
298 B
PHP

<?php
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/support/bootstrap.php';
use yzh52521\EasyHttp\Response;
use yzh52521\EasyHttp\RequestException;
use yzh52521\EasyHttp\Http;
$response = Http::get('https://cn.bing.com/');
print_r($response->header('Content-Type')[0]);