dpacmittal Posted May 30, 2009 Share Posted May 30, 2009 I have this perl/CGI script which converts HTML to BB code. It works fine, I've checked it. Now when I use curl to submit the form using POST data to that script, the POST data breaks. I mean, it breaks at <p style="padding:5px. The data before that is submitted perfectly. Its obvious that there's a semi-colon after padding:5x which is breaking the POST data. How can I resolve this issue? Link to comment https://forums.phpfreaks.com/topic/160247-problems-submitting-a-post-form-in-curl/ Share on other sites More sharing options...
dpacmittal Posted May 30, 2009 Author Share Posted May 30, 2009 I hope I sounded clear. Here's more clear explanation: I've got few semi colons in my POST data. When I post that data using CURL, only the data before first semi-colon gets submitted, the rest is ignored; Link to comment https://forums.phpfreaks.com/topic/160247-problems-submitting-a-post-form-in-curl/#findComment-845629 Share on other sites More sharing options...
Garethp Posted May 30, 2009 Share Posted May 30, 2009 Have you tried escaping the string? If not, try $Data = mysql_escape_string($Data); before you POST it Link to comment https://forums.phpfreaks.com/topic/160247-problems-submitting-a-post-form-in-curl/#findComment-845661 Share on other sites More sharing options...
dpacmittal Posted May 30, 2009 Author Share Posted May 30, 2009 Got it working. Just removed all semi-colons using preg_replace Link to comment https://forums.phpfreaks.com/topic/160247-problems-submitting-a-post-form-in-curl/#findComment-845673 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.