      >>> r = urllib2.urlopen('htpp://rest.ep.io/model-resource-example')
      # You can check if the response was ok:
      >>> r.getcode()
      200
      # Or examin the response itself:
      >>> print r.read()
      [{"url": "http://rest.ep.io/model-resource-example/1/", "baz": "sdf", "foo": true, "bar": 123}]
  
  And here's an example which does a 'POST' to create a new instance::
  
      # First encode tha data we want to POST, we'll use urllib for encoding
 
</s> remove     # You can check if the response was ok:
    >>> r.getcode()
 </s> add     >>> r.getcode() # Check if the response was ok </s> remove And here's an example which does a 'POST' to create a new instance::
 </s> add Using the 'POST' method
-----------------------

And here's an example which does a 'POST' to create a new instance. First let's encode 
the data we want to POST. We'll use `urllib` for encoding and the `time` module 
to send the current time as as a string value for our POST.:: </s> remove     # First encode tha data we want to POST, we'll use urllib for encoding
    # and the time module to send the current time as as a string value for our POST
 </s> add  </s> remove     # Now use the Request class and specify the 'Content-type'
 </s> add    
Now use the `Request` class and specify the 'Content-type'::

    >>> print r.read() # Examin the response itself
      >>> r = urllib2.urlopen('htpp://rest.ep.io/model-resource-example')
      # You can check if the response was ok:
      >>> r.getcode()
      200
    >>> print r.read() # Examin the response itself
    >>> print r.read() # Examin the response itself
      [{"url": "http://rest.ep.io/model-resource-example/1/", "baz": "sdf", "foo": true, "bar": 123}]
  
  And here's an example which does a 'POST' to create a new instance::
  
      # First encode tha data we want to POST, we'll use urllib for encoding
keep keep keep keep replace replace keep keep keep keep keep
 Colouring of literal code

Get the nice colouring sphinx provides and fix some more typos. 
docs/howto/usingurllib2.rst