Re: example code POST with json body

2021-03-16 Thread Justin Erenkrantz
Hi Andrew, You can pass in the -f and -m options to serf_get to send a POST request - eg: % ./serf_get -m POST -f your.json Take a look around setup_request (lines 347) and the options parsing around lines 617: https://github.com/apache/serf/blob/trunk/test/serf_get.c#L347 https://github.com/ap

example code POST with json body

2021-03-16 Thread andrew klassen
Sorry to bother you but I am not able to find example code for client side POSTrequest. Specifically, I need to send POST messages with a json body. I see severaluses of GET in the tests directory. Thank you for any help,Andrew