sending http requests instant now.
[citadel.git] / citadel / modules / extnotify / funambol65.c
index 2e2276df1b678ac4d9426013fe706037c06733b2..7f63c6582c98fa5f33d86ad15838d9f591d0381c 100644 (file)
@@ -44,6 +44,7 @@
 #include "msgbase.h"
 #include "ctdl_module.h"
 
+#include "event_client.h"
 #include "extnotify.h"
 
 /*
@@ -66,7 +67,8 @@ int notify_http_server(char *remoteurl,
        StrBuf *ReplyBuf;
        CURL *chnd;
 
-       return 0;
+       snprintf(msgnumstr, 128, "%ld", MsgNum);
+
        if (tlen > 0) {
                /* Load the template message. Get mallocs done too */
                FILE *Ftemplate = NULL;
@@ -86,8 +88,6 @@ int notify_http_server(char *remoteurl,
                }
                mimetype = GuessMimeByFilename(template, tlen);
 
-               snprintf(msgnumstr, 128, "%ld", MsgNum);
-
                buf = malloc(SIZ);
                memset(buf, 0, SIZ);
                SOAPMessage = malloc(3072);