diff --git a/modules/head.py b/modules/head.py index 1008628..5231edb 100755 --- a/modules/head.py +++ b/modules/head.py @@ -7,11 +7,15 @@ Licensed under the Eiffel Forum License 2. http://inamidst.com/phenny/ """ -import re, urllib, urllib2, httplib, urlparse, time +import re, urllib, urllib2, httplib, urlparse, time, cookielib from htmlentitydefs import name2codepoint import web from tools import deprecated +cj = cookielib.LWPCookieJar() +opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) +urllib2.install_opener(opener) + def head(phenny, input): """Provide HTTP HEAD information.""" uri = input.group(2)