[Solar-talk] Solar_Http_Request, woohoo

Paul M Jones pmjones at ciaweb.net
Thu May 31 10:03:48 PDT 2007


On May 31, 2007, at 11:10 AM, Rodrigo Moraes wrote:

> On 5/31/07, Paul M Jones wrote:
>>>  From the API docs here ...
>>>
>>>    <http://www.feedburner.com/fb/a/developers/feedapi>
>>>
>>> ... it looks like the username and password params need to be  
>>> part of
>>> the URI.  However, Solar_Http_Request currently expects the URI  
>>> to be
>>> fully-formed, including query params.  The class does not merge  
>>> array-
>>> based content with the URI query array on GET requests ... but it
>>> will shortly.
>
> They also support HTTP Basic Authentication:
>
>     http://www.feedburner.com/fb/a/ 
> developers#HTTP_Basic_Authentication
>
> ...but I couldn't get it working using setBasicAuth().

That was my fault; have committed a fix to svn.  Thanks for pointing  
it out.


>> Just committed a change that merges the content array with the URI
>> query array, when it's a GET request.  Let me know if that works for
>> you.
>
> ...and now, it worked with less code. It's handy, thanks. :)
>
> My first webservice client is done. Others are coming soon. :)

Well that's good news then.  :-)

Let me know if anything else goes wrong in Solar_Http_Request.




--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.  <http://solarphp.com>

Join the Solar community wiki!  <http://solarphp.org>

Savant: The simple, elegant, and powerful solution for
templates in PHP.  <http://phpsavant.com>




More information about the solar-talk mailing list