import urllib2,urllib
data = urllib.urlencode({"username" : "usr", "password" : "pass", "lang" : "eng", "usertype" : "cashier", "submit" : "Enter"})
req = urllib2.Request("https://website/index.php", data)
opener = urllib2.build_opener()
response = opener.open(req)
the_page = response.read()
print the_page
ВЫВОД:
<script type="text/javascript">window.location.href = "/h383/list.php";</script>
Итак, я хочу обратиться к list.php с любыми предложениями?