Though it looks like the setPostField() function is for a single field and it looks like you are filling it with multiple attributes/ fields, if I can believe the pluralization of the variable.
Have you tried the setBody() function with put()?
I have no idea if this is even close to what you need.