<p>I know how to do a HEAD request with httplib, but I have to use mechanize for this site. </p>

<p>Essentially, what I need to do is grab a value from the header (filename) without actually downloading the file.</p>

<p>Any suggestions how I could accomplish this?</p>

Mechanize itself only sends GETs and POSTs, but you can easily extend the Request class to send HEAD. Example:
```
```
import mechanize

class HeadRequest(mechanize.Request):
    def get_method(self):
        return "HEAD"

request = HeadRequest("http://www.example.com/")
response = mechanize.urlopen(request)

print response.info()
```
```