Re: n00b with urllib2: How to make it handle cookie automatically?

2008-02-24 Thread est
On Feb 25, 5:46 am, 7stud <[EMAIL PROTECTED]> wrote: > On Feb 24, 4:41 am, est <[EMAIL PROTECTED]> wrote: > > > > > > > On Feb 23, 2:42 am, Rob Wolfe <[EMAIL PROTECTED]> wrote: > > > > est <[EMAIL PROTECTED]> writes: > > > > Hi all, > > > > > I need urllib2 do perform series of HTTP requests with c

Re: n00b with urllib2: How to make it handle cookie automatically?

2008-02-24 Thread 7stud
On Feb 24, 4:41 am, est <[EMAIL PROTECTED]> wrote: > On Feb 23, 2:42 am, Rob Wolfe <[EMAIL PROTECTED]> wrote: > > > > > est <[EMAIL PROTECTED]> writes: > > > Hi all, > > > > I need urllib2 do perform series of HTTP requests with cookie from > > > PREVIOUS request(like our browsers usually do ). Man

Re: n00b with urllib2: How to make it handle cookie automatically?

2008-02-24 Thread est
On Feb 23, 2:42 am, Rob Wolfe <[EMAIL PROTECTED]> wrote: > est <[EMAIL PROTECTED]> writes: > > Hi all, > > > I need urllib2 do perform series of HTTP requests with cookie from > > PREVIOUS request(like our browsers usually do ). Many people suggest I > > use some library(e.g. pycURL) instead but I

Re: n00b with urllib2: How to make it handle cookie automatically?

2008-02-24 Thread est
On Feb 23, 5:57 am, 7stud <[EMAIL PROTECTED]> wrote: > On Feb 21, 11:50 pm, est <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I need urllib2 do perform series of HTTP requests with cookie from > > PREVIOUS request(like our browsers usually do ). > > Cookies from a previous request made in the curr

Re: n00b with urllib2: How to make it handle cookie automatically?

2008-02-23 Thread Steve Holden
7stud wrote: > On Feb 21, 11:50 pm, est <[EMAIL PROTECTED]> wrote: >> class SmartRequest(): >> > > You should always define a class like this: > > class SmartRequest(object): > > > unless you know of a specific reason not to. > > It's much easier, though, just to put __metaclass__ = type at

Re: n00b with urllib2: How to make it handle cookie automatically?

2008-02-22 Thread 7stud
On Feb 21, 11:50 pm, est <[EMAIL PROTECTED]> wrote: > > class SmartRequest(): > You should always define a class like this: class SmartRequest(object): unless you know of a specific reason not to. -- http://mail.python.org/mailman/listinfo/python-list

Re: n00b with urllib2: How to make it handle cookie automatically?

2008-02-22 Thread 7stud
On Feb 21, 11:50 pm, est <[EMAIL PROTECTED]> wrote: > Hi all, > > I need urllib2 do perform series of HTTP requests with cookie from > PREVIOUS request(like our browsers usually do ). > Cookies from a previous request made in the currently running program? Or cookies from requests that were made

Re: n00b with urllib2: How to make it handle cookie automatically?

2008-02-22 Thread 7stud
On Feb 21, 11:50 pm, est <[EMAIL PROTECTED]> wrote: > Hi all, > > I need urllib2 do perform series of HTTP requests with cookie from > PREVIOUS request(like our browsers usually do ). Many people suggest I > use some library(e.g. pycURL) instead but I guess it's good practise > for a python beginne

Re: n00b with urllib2: How to make it handle cookie automatically?

2008-02-22 Thread Rob Wolfe
est <[EMAIL PROTECTED]> writes: > Hi all, > > I need urllib2 do perform series of HTTP requests with cookie from > PREVIOUS request(like our browsers usually do ). Many people suggest I > use some library(e.g. pycURL) instead but I guess it's good practise > for a python beginner to DIY something

n00b with urllib2: How to make it handle cookie automatically?

2008-02-21 Thread est
Hi all, I need urllib2 do perform series of HTTP requests with cookie from PREVIOUS request(like our browsers usually do ). Many people suggest I use some library(e.g. pycURL) instead but I guess it's good practise for a python beginner to DIY something rather than use existing tools. So my probl