form tagged requests and articles

Categorized request examples and articles tagged with [form] keyword
POST HTML Form Example
An example of submitting HTML form data in a URL-encoded format. The Content-Type: application/x-www-form-urlencoded header indicates the media type of the resource. The x-www-form-urlencoded encoding is used when submitting an HTML form and means that the data is represented by name/value pairs separated by ampersands (&), and names are separated from values ​​by equality (=).

GET Request With Bearer Token Authorization Header
An example of sending a GET request with Bearer Token authorization header. The bearer token is sent to the server in the 'Authorization: Bearer {token}' request header. The 'Accept: application/json' header tells the server that the client expects a JSON. The server informs the client that it returned a JSON with 'Content-Type: application/json' response header.

Curl Command to POST a Form
An example of a Curl command to post a form in a URL-encoded format. The form data is passed as key/value pairs with -d curl command-line parameter. The Content-Type header application/x-www-form-urlencoded specifies the media type of the resource as urlencoded form data.