projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d0dbd8
)
Change to // comments and add <?php and ?> wrappers
author
Sterling Hughes
<sterling@bumblebury.com>
Thu, 31 May 2001 12:32:04 +0000
(12:32 +0000)
committer
Sterling Hughes
<sterling@bumblebury.com>
Thu, 31 May 2001 12:32:04 +0000
(12:32 +0000)
php/examples/simplepost.php
patch
|
blob
|
history
diff --git
a/php/examples/simplepost.php
b/php/examples/simplepost.php
index dc4eadf5a0b2c71cbfb78aa8b94c5f0f8c64c6ce..1c29447ba5eca503f479761a4021baca96c01912 100644
(file)
--- a/
php/examples/simplepost.php
+++ b/
php/examples/simplepost.php
@@
-1,6
+1,7
@@
-#
-# A very simple PHP example that sends a HTTP POST to a remote site
-#
+<?php
+//
+// A very simple PHP example that sends a HTTP POST to a remote site
+//
$ch = curl_init();
@@
-10,3
+11,4
@@
curl_setopt($ch, CURLOPT_POSTFIELDS, "postvar1=value1&postvar2=value2&postvar3=v
curl_exec ($ch);
curl_close ($ch);
+?>