Re: Re: Multiple cookie headers and urllib2

2010-11-02 Thread evilmrhenry
Ian Kelly wrote: On Tue, Nov 2, 2010 at 4:50 PM, evilmrhenry <mailto:evilmrhe...@emhsoft.com>> wrote: Python 2.6.4 on Ubuntu. I'm not sure if this is a bug or if I'm just doing this wrong... I'm trying to include two cookies when I use urllib2 to view

Multiple cookie headers and urllib2

2010-11-02 Thread evilmrhenry
Python 2.6.4 on Ubuntu. I'm not sure if this is a bug or if I'm just doing this wrong... I'm trying to include two cookies when I use urllib2 to view a page. #Code Start import urllib2 opener = urllib2.build_opener(urllib2.HTTPCookieProcessor()) opener.addheaders.append(("Cookie", "user=abcd"))