7 thoughts on “WordPress Http – Read Content From Other Websites Leave a comment

  1. Pingback: Yahoo Weather API
  2. Is this a new feature? I can this of some serious time working with cURL and other functions when using WordPress. Is it in 2.8? Think thats what my site is running … I might be working with an API in my next plugin so this is a really helpful find! Cheers Ben!

    1. I think this method has been around for a version or two – before this they used a system called Snoopy which is still available but has been deprecated so could be removed at any time.

  3. Pingback: Follow Friday: Ben Gillbanks - WordPress Hardcore
  4. Pingback: WordPress Caching Tutorial, Custom Caching PHP Library
    1. You could always use a regex to parse the returned html and grab the content you want to access. That can be quite complex though so will take some effort to get it working properly. You could also use DomDocument which takes care of a lot of the heavy lifting for you.

Leave a Reply

Your email address will not be published.