public static function createCollection($host, $collection_name, $user, $pass) { $ascii = self::dirify($collection_name); $entry = DaseClient::makeAtom($ascii, $collection_name, array()); $entry = DaseClient::addCategory($entry, 'collection', 'http://daseproject.org/category/entrytype'); //could have been retrieved from base AtomPub service doc: $url = $host . '/collections'; $resp = DaseClient::post($url, $entry, $user, $pass, 'application/atom+xml'); return $resp; }