Zendでもできるがベタに書いてみる。 <?php $url = 'http://example.org/'; $consumer_key = '1235694568147893b0123b15'; $consumer_secret = '663333123263456c8d789f58'; $version = '1.0'; $signature_method = 'HMAC-SHA1'; $timestamp = time(); $nonce = (string)rand(); $realm = 'realm'; $request_body = array('hello' => 'world'); $body_hash = urlencode(base64_encode(hash('SHA1', $request_body, true))); $auth_header = sprint