guillaume-humbert/httpclient — Issue #4: HTTP 30x codes are not handled
Author: guillaume-humbert
Created: 2011-12-06 04:00:39+00:00
State: open

http_client = HttpClient()
page = http_client.post("http://www.toto.com/login.php",
{'usr_email' : 'xxx@hotmail.com', 'pwd' : 'password', 'remember' : '1' , 'doLogin' : 'Connexion'})
print(page.content_as_string)

This code raises an urllib.error.HTTPError