HTTPS Login
- From: Tom Grove <thomas.grove@xxxxxxxxxx>
- Date: Thu, 31 Aug 2006 11:48:27 -0400
I am trying to login to a secure website and I am having some difficulty understanding the process. Here is what I have with my limited knowledge of the subject:
##Start Code##
#!/usr/bin/env python
import urllib
import urllib2
# Main
params = urllib.urlencode({
"user" : "username",
"pass" : "password"
})
req = urllib2.Request("https://web.site.com/default.aspx", params) data = urllib2.urlopen(req)
for line in data.readlines():
print line
##End Code##
This just doesn't seem to work. It just brings me back to a login screen.
If you can lend a hand it would be much appreciated.
-Tom
.
- Prev by Date: Re: sys.argv[0] doesn't always contain the full path of running script.
- Next by Date: Basic import Questions (with bonus profiling question)
- Previous by thread: Searching a string and extract all occurancies of a substring
- Next by thread: Basic import Questions (with bonus profiling question)
- Index(es):
Relevant Pages
|