post_sync
Description:
public bool post_sync (string? uri, string data, size_t data_length, string? in_content_type, MessageHeaders? in_headers, out string? out_content_type, out MessageHeaders out_headers, out ByteArray? out_content, Cancellable? cancellable = null) throws Error
Issues POST request on the provided uri
, or, in case it's null
, on the URI defined in associated
Source.
The optional in_headers
can contain additional headers to be added to the request. These headers replace any existing in the
request headers, without support for the list-values headers.
The optional out_content_type
can be used to get content type of the response. Free it with
g_free, when no longer needed.
The optional out_headers
contains response headers. Free it with soup_message_headers_free
, when no longer needed.
The optional out_content
can be used to get actual result content. Free it with g_byte_array_free
, when no longer
needed.
Parameters:
this | |
uri |
URI to issue the request for, or |
data |
data to post to the server |
data_length |
length of |
in_content_type |
a Content-Type of the |
in_headers |
additional MessageHeaders to be added to the request, or |
out_content_type |
return location for response Content-Type, or |
out_headers |
optional return location for response MessageHeaders, or |
out_content |
return location for response content, or |
cancellable |
optional Cancellable object, or |
Returns:
Whether succeeded. |