*/
void groupdav_identify_host(void) {
if (!IsEmptyStr(WC->http_host)) {
- wprintf("%s://%s",
+ hprintf("%s://%s",
(is_https ? "https" : "http"),
WC->http_host);
}
lprintf(9, "HTTP/1.1 201 Created\r\n");
groupdav_common_headers();
hprintf("etag: \"%ld\"\r\n", new_msgnum);
- hprintf("Content-Length: 0\r\n");
hprintf("Location: ");
groupdav_identify_host();
hprintf("/groupdav/");/////TODO
- urlescputs(dav_roomname);
+ hurlescputs(dav_roomname);
char escaped_uid[1024];
euid_escapize(escaped_uid, dav_uid);
- wprintf("/%s\r\n", escaped_uid);
+ hprintf("/%s\r\n", escaped_uid);
+ end_burst();
return;
}
urlesc(outbuf, SIZ, strbuf);
wprintf("%s", outbuf);
}
+/**
+ * urlescape buffer and print it as header
+ */
+void hurlescputs(char *strbuf) {
+ char outbuf[SIZ];
+
+ urlesc(outbuf, SIZ, strbuf);
+ hprintf("%s", outbuf);
+}
/*
const char *Bstr(char *key, size_t keylen);
void urlescputs(char *);
+void hurlescputs(char *);
void jsesc(char *, size_t, char *);
void jsescputs(char *);
void output_headers( int do_httpheaders,