When working with mechanize and other such browser emulator you have to monitor your network, I prefer Google chrome developer tools.
Inspect your your URL with normal browser and check these:
- Is this URL valid?
- Is this URL public?
- Is this URL browser restricted?
- Is this URL secured by login?
- What parameters does this URL expect in normal conditions?
Debug these points because may be the URL you are accessing is restricted for:
- Public use
- May be it is directory path, where indexing is not allowed
- May be server has restricted it for some user agents
- May be you are not replicating request completely
I guess I am using too many "may be" but my point is if you can't post your link publicly I can just guess your error, In case your link is directly hitting a directory and its indexing is off then you can't browse it in mechanize either, If it is for specific user agents then you should initialize your mechanize with specific user agent like:
browser = Mechanize.new
browser.user_agent_alias = 'Windows IE 7'
In any other case you are not replicating your request either some important parameters are missing or you are sending wrong request type, headers may be missing.
EDIT: Now that you've provided link here is what you should do while dealing with https
Mechanize.new{|a| a.ssl_version, a.verify_mode = 'SSLv3', OpenSSL::SSL::VERIFY_NONE};