That's just a GET request. You can use file_get_contents() (assuming URL wrappers are enabled), and construct the URL manually.

Or is using sockets a requirement?