PHP WebSocket2 Library
PHP5 Library for browsing web
basic_https_request.php

This is an example of how to perform a basic HTTPS 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('https://php.net'))->getBody();