Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 10 lines (6 sloc) 0.353 kB
5f22889 Added readme
David Cramer authored
1 A replica of the Python httplib designed for lightweight POST and GET requests in PHP.
2
3 Current source allows HTTP connections (no SSL) with GET or POST requests::
4
5
6 $conn = new HTTPConnection('google.com', 80);
7 $conn->request('POST', '/', array('q' => 'hi'));
8
9 $response = $conn->getresponse();
10 if ($response->status == 200) echo $response->read();
Something went wrong with that request. Please try again.