The following code
fRequestHandle = HttpOpenRequestA( fConnectHandle, \"POST\", url.c_str(), NULL,
EDIT:
Looks like this guy had the same problem, the URL is too long.
http://social.msdn.microsoft.com/Forums/en-US/windowsmobiledev/thread/68612c89-bbce-4d88-926d-5d76771be944