Message.newFromEncodedForm

soup.message.Message newFromEncodedForm(string method, string uriString, string encodedForm)

Creates a new #SoupMessage and sets it up to send the given encoded_form to uri via method. If method is "GET", it will include the form data into uri's query field, and if method is "POST" or "PUT", it will be set as request body.

This function takes the ownership of encoded_form, that will be released with funcGLib.free when no longer in use. See also funcform_encode, funcform_encode_hash and funcform_encode_datalist.

Parameters

methodthe HTTP method for the created request (GET, POST or PUT)
uriStringthe destination endpoint (as a string)
encodedForma encoded form

Returns

the new #SoupMessage, or null if

uri_string could not be parsed or method is not "GET, "POST" or "PUT"