Skip to content

Chapter 14: HTTP Web Services #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joshuamabina opened this issue May 21, 2020 · 0 comments
Open

Chapter 14: HTTP Web Services #16

joshuamabina opened this issue May 21, 2020 · 0 comments
Assignees
Labels
class notes New class notes or request

Comments

@joshuamabina
Copy link
Contributor

joshuamabina commented May 21, 2020

Philosophically, I can describe HTTP web services in 12 words: exchanging data with remote servers using nothing but the operations of HTTP. - Mark Pilgrim

Source: https://diveintopython3.net/http-web-services.html


Review Questions

  1. In the words of the author, 304: Not Modified means *"same shit, different day." (a) Discuss what he means (b) Describe when the statement does not apply.

  2. There are five (5) features that all HTTP clients should support. Briefly, help to describe.

  3. Mark so boldly suggests that httplib2 is better than urllib. Expand based on guidelines below:

    1. Like urllib, httplib2 also returns bytes, not strings. Why?
    2. How does caching work on httplib2?
    3. How does httplib2 handle Last-Modified and ETag headers?
    4. How does httplib2 handle compression?
    5. How does httplib2 handle redirects?

External References

  1. https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching
  2. https://web.dev/http-cache/
  3. https://stackoverflow.com/questions/3586295/does-urllib2-urlopen-cache-stuff
  4. https://www.mnot.net/cache_docs/
  5. https://github.com/httplib2/httplib2/wiki/Examples-Python3
@joshuamabina joshuamabina added the class notes New class notes or request label May 21, 2020
@joshuamabina joshuamabina self-assigned this May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class notes New class notes or request
Projects
None yet
Development

No branches or pull requests

1 participant