We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ff30a commit 98ee565Copy full SHA for 98ee565
reference/curl/functions/curl-escape.xml
@@ -66,6 +66,7 @@
66
<programlisting role="php">
67
<![CDATA[
68
<?php
69
+
70
// Create a curl handle
71
$ch = curl_init();
72
@@ -77,10 +78,11 @@ $location = curl_escape($ch, 'Hofbräuhaus / München');
77
78
$url = "http://example.com/add_location.php?location={$location}";
79
// Result: http://example.com/add_location.php?location=Hofbr%C3%A4uhaus%20%2F%20M%C3%BCnchen
80
-// Send HTTP request and close the handle
81
+// Set options and send HTTP request
82
curl_setopt($ch, CURLOPT_URL, $url);
83
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
84
curl_exec($ch);
85
86
?>
87
]]>
88
</programlisting>
0 commit comments