projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Updated message reading to use the new MSG4 command, so we can do output
[citadel.git]
/
webcit
/
serv_func.c
diff --git
a/webcit/serv_func.c
b/webcit/serv_func.c
index fd51936941e127b88f1640ae9942e08cde86b3e6..d8c41ad3904e3ff67481406ac2f547b0a8673017 100644
(file)
--- a/
webcit/serv_func.c
+++ b/
webcit/serv_func.c
@@
-32,13
+32,14
@@
struct serv_info serv_info;
/*
struct serv_info serv_info;
/*
- * get info about the server we've
WC->
connected to
+ * get info about the server we've connected to
*/
void get_serv_info(char *browser_host, char *user_agent)
{
char buf[SIZ];
int a;
*/
void get_serv_info(char *browser_host, char *user_agent)
{
char buf[SIZ];
int a;
+ /* Tell the server what kind of client is connecting */
serv_printf("IDEN %d|%d|%d|%s|%s",
DEVELOPER_ID,
CLIENT_ID,
serv_printf("IDEN %d|%d|%d|%s|%s",
DEVELOPER_ID,
CLIENT_ID,
@@
-48,6
+49,11
@@
void get_serv_info(char *browser_host, char *user_agent)
);
serv_gets(buf);
);
serv_gets(buf);
+ /* Tell the server what kind of richtext we prefer */
+ serv_puts("MSGP text/html|text/plain");
+ serv_gets(buf);
+
+ /* Now ask the server to tell us a little bit about itself... */
serv_puts("INFO");
serv_gets(buf);
if (buf[0] != '1')
serv_puts("INFO");
serv_gets(buf);
if (buf[0] != '1')