PHP WebSocket2 Library
PHP5 Library for browsing web
basic_http_request.php

This is an example of how to perform a basic HTTP request (No proxies, no cookie management or automatic redirections). Anyway, chunked/gzipped/deflated content is supported.

<?php
require '../websock2.php';
//Create file socket
$socket = new FileSocket;
//Run request and echo response body contents (without headers)
echo $socket->sendRequest(WebRequest::createFromUrl('http://php.net'))->getBody();