HW5-Data

Table of Contents

1 Homework & Project   slide

Homework
Use telnet to send data with GET, POST, PUT. Set correct Content-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   slide

cd webarch2013
git checkout master
git pull jblomo master
git push origin master
git checkout -b hw5-data
./server/app.py

http://people.ischool.berkeley.edu/~jblomo/server/

2.1 Tasks with Telnet   slide

  1. 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.
  2. Use a PUT request to set the redirect target of http://people.ischool.berkeley.edu/~<USER>/server/wiki
    1. How do you verify this change?
  3. Use a POST to update the redirect target of http://people.ischool.berkeley.edu/~<USER>/server/wiki to a another new location.
  4. 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   slide

  • Modify app.py to return either an image or text based on the request's Accept header

Author: Jim Blomo

Created: 2014-09-25 Thu 23:56

Emacs 23.4.1 (Org mode 8.0.6)

Validate XHTML 1.0