The Serendipity Handbook

You can now read the (german) handbook here: PDF - https://github.com/s9y/Book (LaTeX source).

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Development Using fsockopen instead of PEAR's HTTP_Request class

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

Postby Marty » Fri Jan 13, 2006 2:33 pm

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

User avatar
garvinhicking
Core Developer
 
Posts: 28948
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Fri Jan 13, 2006 3:06 pm

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 8:09 pm

Postby Marty » Fri Jan 13, 2006 3:41 pm

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

Thanks again.

Martin



Return to Development

Who is online

Users browsing this forum: No registered users and 0 guests