I could be completely wrong, as I usually am.
But you are sending the taskid as the content, not as a parameter.
Usually what I do is add it to the URL string
as in www.website.com/servlet?taskId=1
and pass that string to the Connector.open method.
Something along those lines and that would work. I don't have actual sample code anymore to show if I remembered correctly or not.