php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60921 OAuth::fetch Feature list very hot
Submitted: 2012-01-29 07:58 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ritzs at naver dot com Assigned:
Status: Open Package: oauth (PECL)
PHP Version: 5.3.9 OS: linux
Private report: No CVE-ID: None
 [2012-01-29 07:58 UTC] ritzs at naver dot com
Description:
------------
---
From manual page: http://www.php.net/oauth.fetch#refsect1-oauth.fetch-
description
---

this OAuth::fetch to option "array $http_headers"

Add value to existing header can not be
For example,
before

Authorization	OAuth 
oauth_consumer_key="vZtjt3BHU_Qu",oauth_signature_method="HMAC-
SHA1",oauth_nonce="10419861464f24f9a36b4e01.98191299",oauth_timestamp="132782326
7",oauth_version="1.0",oauth_token="MVySf_Nr_2WoTFkYMRvY_P72PdgOXn",oauth_signat
ure="bV%2F2VF4SF6dx0klduWfBf8GYptU%3D"

after

Authorization	OAuth realm="http://example.com", 
oauth_consumer_key="vZtjt3BHU_Qu",oauth_signature_method="HMAC-
SHA1",oauth_nonce="10419861464f24f9a36b4e01.98191299",oauth_timestamp="132782326
7",oauth_version="1.0",oauth_token="MVySf_Nr_2WoTFkYMRvY_P72PdgOXn",oauth_signat
ure="bV%2F2VF4SF6dx0klduWfBf8GYptU%3D"

If you want to change like that, do not change

$oauth->fetch($url, null, OAUTH_HTTP_METHOD_POST, 
array('Authorization'=>'realm'));




Patches

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC