Maybe you will help me in this "simple" case:
Output of this script is on this image: http://img195.imageshack.us/img195/9...0523110058.png My question is: How I can add new element to headers ?? something like that ('Set-Cookie',"server =2")
Code:
request2 = urllib.request.Request(url) cj2 = http.cookiejar.CookieJar() urlOpener2 = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj2)) url2 = urlOpener2.open(request2) allinfo2 = url2.info()