Skip to main content

Name

http_request_set_body — Set the body of an HTTP request

Synopsis

#include "modules/delivery/http/httpclnt.h"

| void **http_request_set_body** ( | sess, |   | |   | body); |   |

http_session *<var class="pdparam">sess</var>; const char *<var class="pdparam">body</var>;

Description

**Configuration Change. ** This function is available as of version 3.6.

Set the body of an HTTP request. After modifying an http_request you must call http_request_finalize.

Parameters

sess

The http_session. For a description of this data type see “http_session”.

body

A character pointer to the body of the HTTP request.

Return Values

This function returns void.

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?