的参数数组wp_remote_get
接受cookies
参数:
$cookies = [];
$cookie = new WP_Http_Cookie( \'cookie_name\' );
$cookie->name = \'cookie_name\';
$cookie->value = \'your cookie value\';
$cookie->expires = 7 * DAY_IN_SECONDS; // expires in 7 days
$cookie->path = \'/\';
$cookie->domain = \'.reddit.com\';
$cookies[] = $cookie;
$url = \'https://tumblr.com/some/url/\';
$args = [
\'cookies\' => $cookies,
];
$response = wp_remote_get( $url, $args );