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:
1 2 |
$comments=preg_replace('/\<br(\s*)?\/?\>/i', "", $comments); $comments=urlencode($comments); |