You can use WCM API to create page in CQ apart from CURL (Form Post) command mentioned here.
Some code example,
Using resource resolver,
ResourceResolver resolver = <Get instance of resource resolver>
<If you have request object then request.getResourceResolver()>
PageManager pm = resolver.adaptTo(PageManager.class);
pm.create(String parentPath, String pageName, String template, String title) throws WCMException