From 1d324602d1f4b7014792ed4ad2f735126cf2e5bf Mon Sep 17 00:00:00 2001 From: Tomotsugu Kaneko Date: Mon, 4 Jan 2016 16:43:51 +0900 Subject: [PATCH] Add User-Agent --- hl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hl.php b/hl.php index 931b96b..74ee4c7 100644 --- a/hl.php +++ b/hl.php @@ -31,7 +31,7 @@ function get_userinfo() { base64_encode($nonce), $created); $context = stream_context_create( - array('http' => array('header' => "X-WSSE: $x_wsse")) + array('http' => array('header' => "X-WSSE: $x_wsse\r\n"."User-Agent: HatebuList.alfredworkflow")) ); $file = file_get_contents($url, 0, $context); $json = json_decode($file);