Hi,

So I have a rather obscure bug that I've encountered and it is when I'm using libCurl to make an HTTP POST call on MacOS 10.5 with an account with parental controls activated, the last two bytes of the post data are overwritten with the characters "Pr". From the reports our client has passed on to us, it seems to be fine under MacOS 10.4 as well as standard and admin accounts on the MacOS 10.5 machine.

Anyway, has anyone encountered this before or even know where to start looking in the libcurl source code to track it down? I wrote a small app to replicate the bug and to make sure it wasn't our project doing something weird with the data buffer passed on to libcurl:

http://www.malarkeysoftware.com/dropbox/LibCurl_PostDataTest.zip

All it does is sends an HTTP POST call to a sever and displays the response. I used a CGI script that basically echoed back the data received. I also used a packet sniffer to see what was being sent out:

http://sourceforge.net/projects/packetpeeper/

Also, using CURLOPT_COPYPOSTFIELDS instead of CURLOPT_POSTFIELDS didn't affect the results at all The last two bytes were still being overwritten on the way out.

Vince

Reply via email to