https asp サイトから一部のコンテンツをスクレイピングするために機械化しようとすると、200 が返されるため、ログイン ページの送信が機能しているように見えます。セッションの有効期限が切れたというエラーでログイン ページに戻りました。最後の印刷は、リダイレクトされたことを確認できるようにするためのものです。
import mechanize
USER_AGENT = "Mozilla/5.0 (X11; U; Linux i686; tr-TR; rv:1.8.1.9) Gecko/20071102 Pardus/2007 Firefox/2.0.0.9"
mech = mechanize.Browser()
mech.addheaders = [("User-agent", USER_AGENT)]
mech.open("https://www.example.com/login.asp")
mech.select_form("loginform")
mech['id'] = "blah"
mech['pin'] = "blah"
response = mech.submit()
trueContent = mech.open("https://www.example.com/content")
print trueContent.geturl()