post_sync


Description:

[ Version ( since = "3.32" ) ]
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

an WebDAVSession

uri

URI to issue the request for, or null to read from Source

data

data to post to the server

data_length

length of data, or -1, when data is NUL-terminated

in_content_type

a Content-Type of the data, or null, to use application/xml

in_headers

additional MessageHeaders to be added to the request, or null

out_content_type

return location for response Content-Type, or null

out_headers

optional return location for response MessageHeaders, or null

out_content

return location for response content, or null

cancellable

optional Cancellable object, or null

Returns:

Whether succeeded.




2022 vala-language.org