summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-20 21:00:16 +0200
committerdefault <nobody@localhost>2022-09-20 21:00:16 +0200
commitd76131b4737832585e58bda6e47125d8fb9bd8b4 (patch)
tree537982247ce0d00efa309fea46a7de345b76c4c3 /main.c
parent9a2e7d4b82cd36188ca3e495b7b25d0a571400b1 (diff)
Added http signed request code (untested).
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.c b/main.c
index 42606c2..ccef5cc 100644
--- a/main.c
+++ b/main.c
@@ -15,6 +15,13 @@ int main(int argc, char *argv[])
user_open(&snac, "mike");
+ d_char *headers = xs_dict_new();
+ int status;
+ d_char *payload;
+ int p_size;
+ http_signed_request(&snac, "GET", "https://comam.es/snac/jessie",
+ headers, NULL, 0, &status, &payload, &p_size);
+
{
xs *list = queue(&snac);
char *p, *fn;