fixed a bug (i think)

 - added function bodies.
 - fixed a bug (POST request sent nothing for me on iOS 5.1.1 and curl-7.27.0).