encode_hash


Description:


public string encode_hash (HashTable<string,string> form_data_set)

Encodes form_data_set into a value of type "application/x-www-form-urlencoded".

Encodes as defined in the HTML 4.01 spec.

Note that the HTML spec states that "The control names/values are listed in the order they appear in the document." Since this method takes a hash table, it cannot enforce that; if you care about the ordering of the form fields, use [func@form_encode_datalist].

See also: [ctor@Message.new_from_encoded_form].

Parameters:

form_data_set

a hash table containing name/value pairs (as strings)

Returns:

the encoded form


Namespace: Soup.Form
Package: libsoup-3.0