Writing REST clients in C is easier if you've got a friend