request_new_from_multipart


Description:


[ Version ( since = "2.26" ) ]
public Message request_new_from_multipart (string uri, Multipart multipart)

Creates a new Message and sets it up to send multipart to uri via POST.

To send a "multipart/form-data" POST, first create a Multipart, using FORM_MIME_TYPE_MULTIPART as the MIME type. Then use append_form_string and append_form_file to add the value of each form control to the multipart. (These are just convenience methods, and you can use append_part if you need greater control over the part headers.) Finally, call request_new_from_multipart to serialize the multipart structure and create a Message.

Parameters:

uri

the URI to send the form data to

multipart

a "multipart/form-data" Multipart

Returns:

the new Message


Namespace: Soup.Form
Package: libsoup-2.4