• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 13 pages
Lecture notes

Web Programming: Introduction, HTTP and Python Lecture Notes

Document preview thumbnail
Preview 2 out of 13 pages

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.

Content preview

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

Document information

Study
Unknown
Uploaded on
January 5, 2025
Number of pages
13
Written in
2024/2025
Type
Lecture notes
Professor(s)
Paulo oliva
Contains
All classes
$10.57

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
10
Last sold
-




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions