Skip to content
A port of Python's httplib in PHP
PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE
README.rst
httplib.inc.php
tests.php

README.rst

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.