Re: Re: [PEPr] Comment on HTTP::HTTP_OAuth
| From: | Alexey Borzov | Date: | Thu, 30 Jul 2009 09:12:48 +0000 |
| Subject: | Re: Re: [PEPr] Comment on HTTP::HTTP_OAuth | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-52530@lists.php.net to get a copy of this message | ||
Hi,
Daniel O'Connor wrote:
I think Jeff was referring to generating and sending a HTTP response, rather than receiving and parsing one.I used pecl_http for the HttpMessage class and support for responses. The HTTP_OAuth_Consumer_Response, HTTP_OAuth_Provider_Request, and HTTP_OAuth_Provider_Response all decorate HttpMessage. I use HttpMessage::fromEnv() as a default way of constructing a response, therefore it will grab the existing headers set, body, etc. HTTP_Request2 does not have much support for responses. There is a lot of header parsing and setting in OAuth requests and I prefer not using header() directly.HTTP_Request2_Response perhaps? it's got getHeader($name), getBody(), getStatus(), etc...