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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ritzs at naver dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 19:01:25 2019 UTC