Skip to content

Instantly share code, notes, and snippets.

@mlcollard
Last active April 27, 2021 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlcollard/3e5cc2fd8d2dc270ce1870ce48a9cff6 to your computer and use it in GitHub Desktop.
Save mlcollard/3e5cc2fd8d2dc270ce1870ce48a9cff6 to your computer and use it in GitHub Desktop.
DELETE /todo/items/124 HTTP/2
Host: mlcollard.net
HTTP/2 204 No Content
Date: Mon, 26 Apr 2021 17:42:27 GMT
GET /todo/items/132 HTTP/2
Host: mlcollard.net
HTTP/2 404 Not Found
Date: Mon, 26 Apr 2021 17:35:27 GMT
Content-Length: 290
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /todo/items/132 was not found on this server.</p>
<hr>
<address>Apache/2.2.14 (Ubuntu) Server at mlcollard.net Port 80</address>
</body></html>
GET /todo/items/123 HTTP/2
Host: mlcollard.net
HTTP/2 200 OK
Content-Length: 167
Content-Type: application/xml
Date: Mon, 26 Apr 2021 17:33:27 GMT
<item xmlns="https://mlcollard.net/todo">
<name>Prepare for SEM</name>
<description>Make sure the RESTful notes are ready</description>
</item>
POST /todo/items HTTP/2
Host: mlcollard.net
Content-Length: 190
Content-Type: application/xml
<item xmlns="https://mlcollard.net/todo">
<name>Prepare for SEM Again</name>
<description>Make sure the RESTful notes are ready again</description>
<dueday>Thursday</dueday>
</item>
HTTP/2 201 Created
Date: Mon, 26 Apr 2021 17:42:27 GMT
Content-Length: 201
Content-Type: application/xml
Location: https://mlcollard.net/todo/items/124
<item xmlns="https://mlcollard.net/todo">
<name>Prepare for SEM Again</name>
<description>Make sure the RESTful notes are ready again</description>
<dueday>Thursday</dueday>
</item>
PUT /todo/items/123 HTTP/2
Host: mlcollard.net
Content-Length: 194
Content-Type: application/xml
<item xmlns="https://mlcollard.net/todo">
<name>Prepare for SEM</name>
<description>Make sure the RESTful notes are ready</description>
<dueday>Tuesday</dueday>
</item>
HTTP/2 204 No Content
Date: Mon, 26 Apr 2021 17:40:27 GMT
HTTP/2 204 No Content
Date: Mon, 26 Apr 2021 17:40:27 GMT
HTTP/2 200 OK
Date: Mon, 26 Apr 2021 17:40:27 GMT
Content-Length: 194
Content-Type: application/xml
<item xmlns="https://mlcollard.net/todo">
<name>Prepare for SEM</name>
<description>Make sure the RESTful notes are ready</description>
<dueday>Tuesday</dueday>
</item>
<item xmlns="https://mlcollard.net/todo">
<name>Prepare for SEM</name>
<description>Make sure the RESTful notes are ready</description>
</item>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment