using neon (an HTTP and WebDAV client library, with a C interface) see how to use GET / PUT / POST in some (not-so-perfect) examples
More→