Using fsockopen instead of PEAR's HTTP_Request class

Discussion corner for Developers of Serendipity.
Post Reply
Marty
Regular
Posts: 13
Joined: Tue Jan 10, 2006 7:09 pm

Using fsockopen instead of PEAR's HTTP_Request class

Post by Marty »

Hi there,

Garvin recently threw together a new event ( backend_http_request ), when coupled with his serendipity_event_proxy_request plugin, it allows the user to specify whatever HTTP proxy settings they require for making outbound HTTP requests. This is great (Thanks Garvin!)!

But there is one small problem - serendipity_reference_autodiscover and _serendipity_send don't use the PEAR HTTP_Request class and instead do some hand-crafted HTTP requests. Is there a compelling reason for this, or can they be changed to also use HTTP_Request method?

I'm going to have a little poke around and see what happens when I make this change (or indeed, if this change is possible).

Feedback gratefully received!

Martin
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Using fsockopen instead of PEAR's HTTP_Request class

Post by garvinhicking »

Those two functions ARE using the HTTP_Request class. But you must use the latest Serendipity 1.0-alpha versions for that; I've committed that change a few weeks ago. :-)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Marty
Regular
Posts: 13
Joined: Tue Jan 10, 2006 7:09 pm

Post by Marty »

Great! I've switched to alpha2, and everything works!

Thanks again.

Martin
Post Reply