[wp-hackers] Re: Preferred method of fetching remote webpage?
davebytes at comcast.net
Thu Jun 22 16:58:48 GMT 2006
No, it's obvious he just strips the headers.
I too wrote my own retrieval library -- underlying CG-FeedRead and CG-Amazon
(and upcoming projects...) -- targeting quick XML fetches. And yes, I dealt
with the various redirect and other header codes. After using built-in PHP
stuff for a while, that then broke on some hosts, then trying one or two
libraries, which didn't always work, I wrote my own -- just easier at that
If you're only concerned with WP, definitely use WP facilities. I've
written general-purpose solutions, thus didn't want to 'rely' on a given
platform's includes. :)
----- Original Message -----
From: "Daniel Cheng" <gmane at sdiz.net>
To: <wp-hackers at lists.automattic.com>
Sent: Thursday, June 22, 2006 12:24 PM
Subject: [wp-hackers] Re: Preferred method of fetching remote webpage?
| Viper007Bond wrote:
| > I've been using this bit of code in a plugin I wrote:
| > http://viper007bond.pastebin.com/724979
| > However, should I be using Snoopy or something for this? I mean, is
| > there any drawback to using fsockopen?
| Does your implementation handle HTTP 3xx Redirections ?
| <?php header("Location: .... "); ?>
| > -Viper
| wp-hackers mailing list
| wp-hackers at lists.automattic.com
More information about the wp-hackers