forked from dcramer/php-httplib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Cramer
committed
Sep 10, 2009
1 parent
d520cde
commit 5f22889
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
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(); |