I know how to do a HEAD request with httplib, but I have to use mechanize for this site.
Essentially, what I need to do is grab a value from the header (filename) w
In mechanize there is no need to do HeadRequest class etc.
Simply
import mechanize br = mechanize.Browser() r = br.open("http://www.example.com/") print r.info()
That's all.