php man page for curl_unescape

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 string

SYNOPSIS
string curl_unescape (resource $ch, string $str)
DESCRIPTION
This function decodes the given URL encoded string.
PARAMETERS
o $ch -A cURL handle returned by curl_init(3). o $str - The URL encoded string to be decoded.
RETURN VALUES
Returns decoded string or FALSE on failure.
EXAMPLES
Example #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); ?>
NOTES
Note curl_unescape(3) does not decode plus symbols (+) into spaces. urldecode(3) does.
SEE ALSO
curl_escape(3), urlencode(3), urldecode(3), rawurlencode(3), rawurldecode(3). PHP Documentation Group CURL_UNESCAPE(3)
Related Man Pages
curl_escape(3) - php
curl_multi_add_handle(3) - php
curl_share_init(3) - php
curl_unescape(3) - php
urlencode(3) - php
Similar Topics in the Unix Linux Community
Php
how to use in bash variables and quotes
decoding URL encoded strings
Get password protected URL folder using PHP fopen function
Command to get URL under string &quot;SIT&quot;