URL::withPOSTData()

How do you use this function? What is the format of post data?

The format depends on what content type you’re sending, which gets specified by a mime type in the headers… it’s all a bit too complicated to explain here (and I’m no expert myself), but there’s lots of stuff out there about the HTTP format.