request_new_from_multipart


Description:


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

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

To send a <literal>"multipart/form-data"</literal> POST, first create a Multipart , using soup_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 soupmessage


Namespace: Soup.Form
Package: libsoup-2.4