Message.newFromEncodedForm

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.

class Message
static
newFromEncodedForm
(
string method
,
string uriString
,)

Parameters

method string

the HTTP method for the created request (GET, POST or PUT)

uriString string

the destination endpoint (as a string)

encodedForm string

a encoded form

Return Value

Type: soup.message.Message

the new #SoupMessage, or null if uri_string could not be parsed or method is not "GET, "POST" or "PUT"