I'm getting a weird error in the python2.6 interpreter, not sure what's up. FIgured I'd post here to see if I can some good info. Thanks!
$ python2.6
Python 2.6.5 (r265:79063, Jul 15 2010, 10:12:41)
[GCC 3.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cookielib, urllib2
>>> cj = cookielib.CookieJar()
>>> opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
>>> import urllib
>>> data = urllib.urlencode({'pw':'<password>', 'user': '<username>'})
>>> web_file = opener.open("https://members.sonic.net", data) # <-- this is the line that's causing the issue
Segmentation fault
_[Sonic:/home/d/dja]_
$
This same code works from my laptop at home, but not on bolt.sonic.net, I thought maybe it was safeguard against logging into member tools from the command line, but it also seg faults on http://www.gmail.com.
$ python2.6
Python 2.6.5 (r265:79063, Jul 15 2010, 10:12:41)
[GCC 3.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cookielib, urllib2
>>> cj = cookielib.CookieJar()
>>> opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
>>> import urllib
>>> data = urllib.urlencode({'pw':'<password>', 'user': '<username>'})
>>> web_file = opener.open("https://members.sonic.net", data) # <-- this is the line that's causing the issue
Segmentation fault
_[Sonic:/home/d/dja]_
$
This same code works from my laptop at home, but not on bolt.sonic.net, I thought maybe it was safeguard against logging into member tools from the command line, but it also seg faults on http://www.gmail.com.