How do I pass registration data to Openfire from Smack client?

I would like to register a new user via a client screen using Smack. How do I pass on the registration information to the registration web page ? When I try using POST method, it is connecting but not creating the new user.

Thanks for your help.