Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (6 sloc) 353 Bytes

A replica of the Python httplib designed for lightweight POST and GET requests in PHP.

Current source allows HTTP connections (no SSL) with GET or POST requests:

$conn = new HTTPConnection('google.com', 80);
$conn->request('POST', '/', array('q' => 'hi'));

$response = $conn->getresponse();
if ($response->status == 200) echo $response->read();
Something went wrong with that request. Please try again.