Re: send cookie on request with urllib2

2006-04-22 Thread itay_k
Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: send cookie on request with urllib2

2006-04-22 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (John J. Lee) wrote: >"No," scolded Yoda. "Do, or do not. There is no try." Convincing argument against exceptions, don't you think. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: send cookie on request with urllib2

2006-04-21 Thread John J. Lee
"itay_k" <[EMAIL PROTECTED]> writes: > ok. > i will explain what exactly i wanna do. > > i want to simulate the following client-side script with python: > > > > > document.cookie="name=tom"; > document.images["Pic"].src="temp2.html" > Ah! In which case what you're trying t

Re: send cookie on request with urllib2

2006-04-21 Thread itay_k
ok. i will explain what exactly i wanna do. i want to simulate the following client-side script with python: document.cookie="name=tom"; document.images["Pic"].src="temp2.html" what that happen here, is when this page loading, the browser loads "temp2.html" with HTTP header:

Re: send cookie on request with urllib2

2006-04-20 Thread John J. Lee
Kent Johnson <[EMAIL PROTECTED]> writes: > itay_k wrote: > > Hi, > > > > I dont understand why this is so complicated, just to add one line of > > cookie header on the GET request. > > > > This is my unworking code: > > import time > > import Cookie > > import cookielib, urllib2 > > > > c= cook

Re: send cookie on request with urllib2

2006-04-20 Thread Kent Johnson
itay_k wrote: > Hi, > > I dont understand why this is so complicated, just to add one line of > cookie header on the GET request. > > This is my unworking code: > import time > import Cookie > import cookielib, urllib2 > > c= cookielib.Cookie(1,"Name","Tom", 80,False, "itay", False, False, > "d:

Re: send cookie on request with urllib2

2006-04-20 Thread John J. Lee
"itay_k" <[EMAIL PROTECTED]> writes: > Hi, > > I dont understand why this is so complicated, just to add one line of > cookie header on the GET request. You haven't said what you're really trying to do. http://www.catb.org/~esr/faqs/smart-questions.html#goal > This is my unworking code: > imp

send cookie on request with urllib2

2006-04-20 Thread itay_k
Hi, I dont understand why this is so complicated, just to add one line of cookie header on the GET request. This is my unworking code: import time import Cookie import cookielib, urllib2 c= cookielib.Cookie(1,"Name","Tom", 80,False, "itay", False, False, "d:\\asddd",False, False,time.time()+1000