I am using CURL-PHP to post data to server. Options are set to curl through curl_setopt function. But somehow anonymous user enters "&" in his password. As data is collected in xml so as Xml's drawback it stops there and fires some XML Exception. If i used CDATA then it may not parse that password and ultimately authentication wil be failed. I used php encoding functions like htmlentities,html_entit_decode,utf8_encode,utf8_encode,urlencode nad urldecode. But the issue is same. Is there any method to send "&" through XML and posted that data thurh CURL. As per my knowledge, CURL itself internally parses.
Thanks,