Query: curl_unescape
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CURL_UNESCAPE(3) 1 CURL_UNESCAPE(3) curl_unescape - Decodes the given URL encoded stringSYNOPSISstring curl_unescape (resource $ch, string $str)DESCRIPTIONThis function decodes the given URL encoded string.PARAMETERSo $ch -A cURL handle returned by curl_init(3). o $str - The URL encoded string to be decoded.RETURN VALUESReturns decoded string or FALSE on failure.EXAMPLESExample #1 curl_escape(3) example <?php // Create a curl handle $ch = curl_init('http://example.com/redirect.php'); // Send HTTP request and follow redirections curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_exec($ch); // Get the last effective URL $effective_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); // ie. "http://example.com/show_location.php?loc=M%C3%BCnchen" // Decode the URL $effective_url_decoded = curl_unescape($ch, $effective_url); // "http://example.com/show_location.php?loc=Munchen" // Close the handle curl_close($ch); ?>NOTESNote curl_unescape(3) does not decode plus symbols (+) into spaces. urldecode(3) does.SEE ALSOcurl_escape(3), urlencode(3), urldecode(3), rawurlencode(3), rawurldecode(3). PHP Documentation Group CURL_UNESCAPE(3)
| Related Man Pages |
|---|
| curl_unescape(3) - centos |
| curl_unescape(3) - suse |
| curl_setopt_array(3) - php |
| curl_reset(3) - php |
| rawurlencode(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| Replace spaces |
| ReDirecting a URL to another URL - Linux |
| decoding URL encoded strings |
| Using cURL to submit a post form |
| Command to get URL under string "SIT" |