Modules/cURL/curl escape: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Mack Varial (talk | contribs) No edit summary |
||
Line 29: | Line 29: | ||
==See also== | ==See also== | ||
{{Modules/cURL/functions}} | {{Modules/cURL/functions}} | ||
Revision as of 15:41, 16 July 2011
This function is provided by the external module cURL. You must install this module to use this function. | |
Escape url's. You wont need this function if you pass the url to curl_init.
Syntax
curl_escape(curl handler, string url)
Required arguments
- curl The curl handler
- url The url you want to escape
Returns
The escaped url, if it fails it will return nil
Example
curl = curl_init(); if not curl then outputDebugString("Can't connect to http://mtasa.com/ with cURL"); else curl_setopt(curl, CURLOPT_URL, curl_escape(curl, "http://mtasa.com/")); curl_close(curl); end