C Collections

chttp · Section 3

CHTTP_FORM_BODY

CHTTP_FORM_BODY - construct a chttp_request_body for URL-encoded form content

C Collections (libccollections, -lccollections)

#include <ccollections/chttp.h>
 
CHTTP_FORM_BODY(d, n)

This macro expands to an initializer for a chttp_request_body that
sets Content-Type to "application/x-www-form-urlencoded", the data
pointer to d and the byte length to n.  You must percent-encode every
key and value yourself before you hand the data to this macro.

CHTTP_JSON_BODY(3), CHTTP_BODY(3)