Lecture Notes about the basis of HTTP protocol, how requests and responses work, and the basis of Python to use in Django.
It has a summary section on the left side of the page, following the Cornell note taking method, where the key points are summarised on the side of the noted.
1️⃣
Introduction, HTTP and Python
SUMMARY MAIN NOTES
client makes a Contents
request to server Basics
through HTTP HTTP Message Structure
protocol Both
Responses
URL dispatcher Requests
returns function HTTP Headers
that has access to HTTP Body
the data HTTP Methods/ Actions
GET vs POST
The data is sent
POST vs PUT
back to the client
HTTP Method Properties
through HTML HTTP Responses
templates and Response codes
static files Components of a URL
HTTP has different
actions:
Basics
POST to create
new resources
(same as
INSERT in
💡 A client makes a request to server through
the HTTP protocol and URLs. Depending
SQL) on the URL dispatcher, it returns a view
function, which has access to the
GET to get a
data/database. Data is then sent back to
resource
the client through HTML templates, with
(same as
static files e.g. JavaScript, CSS, JPEG.
SELECT in
SQL)
PUT to change
or update HTTP Message Structure
(same as
Introduction, HTTP and Python 1
, UPDATE in Both
SQL)
Start line describing the request to be
HEAD, similar implemented or its status
to get,
Optional set of HTTP headers specifying the
transfers
request or describing the body
status line &
header A blank line that indicates all meta information
for the request has been sent
DELETE to
destroy a Optional body containing data associated with
resource the request, or documented associated with a
response. Its presence and size are specified in
HTTP methods
the start line and headers.
can be:
safe: the
request has Responses Requests
the same status line: they have an HTTP
effect as not method
the protocol
requesting.
version A request target,
There can be
usually a URL, path
side-effects, a status code
or protocol and
but it will be for success or
domain. It can be:
fault of the failure of the
user. request an absolute path
followed by ?
GET, a status text i.e.
and a query
HEAD, information
string
OPTIONS about the status
code for the a complete URL
idempotent:
user
calling the the authority
method component of a
multiple times URL, with the
has the same domain name
effect as and optionally
calling it once. the port
prefixed by :.
GET,
Only used with
HEAD, PUT
and CONNECT
DELETE
Introduction, HTTP and Python 2
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller ileniamaiettabusiness. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £7.16. You're not tied to anything after your purchase.