https://github.com/dcramer/php-httplib
A port of Python's httplib in PHP
https://github.com/dcramer/php-httplib
Last synced: 4 months ago
JSON representation
A port of Python's httplib in PHP
- Host: GitHub
- URL: https://github.com/dcramer/php-httplib
- Owner: dcramer
- License: bsd-2-clause
- Created: 2009-09-10T18:58:51.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-09-10T19:03:39.000Z (over 15 years ago)
- Last Synced: 2025-02-06T11:18:57.187Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 79.1 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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();