Encoding strings for curl or any type of post/get

A problem I faced was that when the string I want to pass contains “&” and goes through curl it breaks the value passed since “&” acts as a value separator.
The solution is to urlencode the string.
If you manage the reception then you can also decode, but it worked fine as is for me:

Leave a Reply

Your email address will not be published. Required fields are marked *