Add default value for API URL
Fix URL handling
Fix NPE in CoprBuild
Attach POST params