Skip to content

Methods Examples

Mahmoud A. Zaid edited this page Mar 12, 2019 · 4 revisions

1. GET

* Request

User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)
Host: dummy.restapiexample.com
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

* Response

Date: Mon, 11 Mar 2019 12:28:53 GMT
Server: Apache/2.2.14 (Win32)
Last-Modified: Wed, 06 Mar 2019 19:15:56 GMT
ETag: "34aa387-d-1568eb00"
Vary: Authorization,Accept
Accept-Ranges: bytes
Content-Length: 88
Content-Type: text/html
Connection: Closed

2. POST

* Request

POST /cgi-bin/process.cgi HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)
Host: dummy.restapiexample.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: Keep-Alive 
licenseID=string&content=string&/paramsXML=string

* Response

Date: Mon, 11 Mar 2019 12:28:53 GMT
Server: Apache/2.2.14 (Win32)
Last-Modified: Wed, 06 Mar 2019 19:15:56 GMT
ETag: "34aa387-d-1568eb00"
Vary: Authorization,Accept
Accept-Ranges: bytes
Content-Length: 88
Content-Type: text/html
Connection: Closed

3. PUT

* Request

User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)
Host: dummy.restapiexample.com
Accept-Language: en-us
Connection: Keep-Alive
Content-type: text/html
Content-Length: 182

* Response

Date: Mon, 11 Mar 2019 12:28:53 GMT
Server: Apache/2.2.14 (Win32)
Content-type: text/html
Content-length: 30
Connection: Closed

4. HEAD

* Request

User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)
Host: dummy.restapiexample.com
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

* Response

Date: Mon, 11 Mar 2019 12:28:53 GMT
Server: Apache/2.2.14 (Win32)
Last-Modified: Wed, 06 Mar 2019 19:15:56 GMT
ETag: "34aa387-d-1568eb00"
Vary: Authorization,Accept
Accept-Ranges: bytes
Content-Length: 88
Content-Type: text/html
Connection: Closed

4. DELETE

* Request

User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)
Host: dummy.restapiexample.com
Accept-Language: en-us
Connection: Keep-Alive

* Response

Date: Mon, 11 Mar 2019 12:28:53 GMT
Server: Apache/2.2.14 (Win32)
Content-type: text/html
Content-length: 30
Connection: Closed

5. CONNECT

* Request

User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)

* Response

Date: Mon, 11 Mar 2019 12:28:53 GMT
Server: Apache/2.2.14 (Win32)

6. OPTIONS

* Request

User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)

* Response

Date: Mon, 11 Mar 2019 12:28:53 GMT
Server: Apache/2.2.14 (Win32)
Allow: GET,HEAD,POST,OPTIONS,TRACE
Content-Type: httpd/unix-directory
Clone this wiki locally