Added create_formpost method to assist in CORS tests.

Change-Id: Id68175b87f413d2a25e9c38698127cbd70e91a82
Merge "Added create_formpost method to assist in CORS tests."