macdabby / php-httplib

A port of Python's httplib in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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();

About

A port of Python's httplib in PHP

License:BSD 2-Clause "Simplified" License


Languages

Language:PHP 100.0%