HW5-Data
Table of Contents
1 Homework & Project
- Homework
- Use telnet to send data with
GET
,POST
,PUT
. Set correctContent-Type
for an image
1.1 Yes, Project & HW notes
- Homeworks will continue while you work on projects
- Homeworks will emphasis week's lesson
- Projects will bring them together
2 Homework
cd webarch2013 git checkout master git pull jblomo master git push origin master git checkout -b hw5-data ./server/app.py
2.1 Tasks with Telnet
- What HTTP command is used to make the
/home
resource respond with your full name (including spaces), the title of the page should be the full title of this class. - Use a PUT request to set the redirect target of http://people.ischool.berkeley.edu/~<USER>/server/wiki
- How do you verify this change?
- Use a POST to update the redirect target of http://people.ischool.berkeley.edu/~<USER>/server/wiki to a another new location.
- Update
app.py
to correctly return an image from http://people.ischool.berkeley.edu/~<USER>/server/i253- Use your browser to test
- Including the
Content-Type
in your submission
2.1.1 Lab will discuss details notes
- We'll go over
app.py
2.2 Extra Credit
- Modify
app.py
to return either an image or text based on the request'sAccept
header