WordPress has a built-in library to do HTTP requests that uses curl, fsockopen, and streams. Here's a proposed patch.
Just thought I would share that there is an improved version of this that already includes the above suggestion. It also supports embedding Github files.
This topic has been closed to new replies.