Anatomy of a Response - cannot get results to pass


#1

I need some help here as I cannot seem to pass this exercise on "Anatomy of a Response" from "How to use APIs with Python. The instructions ask us to print the headers from the response request. I did so and it fails.
I also checked the "Hint" and it provided me the same line to use.

Below is the code from the exercise including the last line which is what they asked of me to add in.
If I do the same on the cmd-line in my terminal, I get back a dictionary of headers.
Please help me and tell me what I am doing wrong.

################## Example response ##########################
# HTTP/1.1 200 OK
# Content-Type: text/xml; charset=UTF-8

# <?xml version="1.0" encoding="utf-8"?>
# <string xmlns="http://www.codecademy.com/">Accepted</string>
##############################################################

import requests
response = requests.get("http://placekitten.com/")

# print the header information from the response
print response.headers

#2


What is going on with this exercise? It contradicts itself telling me to both post and get. It give me two URLs which return 403 forbidden. I tried switching to use https, but that does not work either, the cert does not match the site name.

Please fix this bug!


#3

I have the same problem
happy wheels 2.0


#4

I am totally satisfied with the service of internet explorer as it provides all the help that you need . I was very frustrated with the interruption of certification issue in site opening but suddenly i got help from security certificate errors internet explorer fix and here i got total knbowledge about the issue fixing regarding certification issues.