php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59189 Add generic http_negotiate_* function
Submitted: 2010-05-03 17:44 UTC Modified: 2010-06-09 03:29 UTC
From: michal dot kocarek at brainbox dot cz Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: Irrelevant OS:
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: michal dot kocarek at brainbox dot cz
New email:
PHP Version: OS:

 

 [2010-05-03 17:44 UTC] michal dot kocarek at brainbox dot cz
Description:
------------
It would be useful to have generic http_negotiate_* function which would work exactly as existing negotiating function, but would accept the header value in the addition.

Example function declaration:
string http_negotiate_value($header, $supported, &$result = null);

$supported is array of supported values

$result will be filled with an array containing negotiation results

Returns the negotiated value or the default value (i.e. first array entry) if none match.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-09 03:29 UTC] mike@php.net
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Oct 18 20:03:33 2021 UTC