Browse Source

Allow post requests

master
Christoph Haas 1 year ago
parent
commit
86c489f573
3 changed files with 73 additions and 29 deletions
  1. 1
    0
      gclogger.example.ini
  2. 1
    0
      include/gclogger.h
  3. 71
    29
      src/gclogger.c

+ 1
- 0
gclogger.example.ini View File

@@ -29,6 +29,7 @@ interval=60
29 29
 [custlog]
30 30
 ;id=example_device_id
31 31
 ;url=https://api.mygclog.com/log
32
+;type=GET
32 33
 ;param_id=id
33 34
 ;param_cpm=cpm
34 35
 ;param_temp=temp

+ 1
- 0
include/gclogger.h View File

@@ -37,6 +37,7 @@ typedef struct
37 37
     char* safecast_device;
38 38
     char* netc_id;
39 39
     char* custlog_url;
40
+    char* custlog_type;
40 41
     char* custlog_id;
41 42
     char* custlog_param_id;
42 43
     char* custlog_param_cpm;

+ 71
- 29
src/gclogger.c
File diff suppressed because it is too large
View File


Loading…
Cancel
Save