Method
SoupMessageset_request_body
Declaration [src]
void
soup_message_set_request_body (
  SoupMessage* msg,
  const char* content_type,
  GInputStream* stream,
  gssize content_length
)
      Description [src]
Set the request body of a SoupMessage.
If content_type is NULL and stream is not NULL the Content-Type header will
not be changed if present.
The request body needs to be set again in case msg is restarted
(in case of redirection or authentication).
Parameters
content_type- 
            
Type:
const char*MIME Content-Type of the body, or
NULLif unknown.The argument can be NULL.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.  stream- 
            
Type:
GInputStreamA
GInputStreamto read the request body from.The argument can be NULL.The data is owned by the caller of the function.  content_length- 
            
Type:
gssizeThe byte length of
streamor -1 if unknown.