I have a URL (slightly modified), for example:
https://ssl.site.com/certificate/123/moo.shoo?type=456&domain=$GH$%2fdodo%20[10%3a47%3a11%3a3316]
This does not work the way I assume when passed directly to PHP cURL due to parentheses.
I managed to run the same URL on the command line as follows:
curl -g "https://ssl.site.com/certificate/123/moo.shoo?type=456&domain=$GH$%2fdodo%20[10%3a47%3a11%3a3316]"
Is there an option (similar to -g to disable globbing) that I can use in PHP cURL? If not, how can I encode or format my URL before passing it to PHP cURL?
source
share