Berkeley CSUA MOTD:2007:August:07 Tuesday <Monday, Wednesday>
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2007/8/7-13 [Politics/Domestic/California, Politics/Domestic/Immigration] UID:47551 Activity:nil
8/7     the most honest, ethical, and open Congress in history
        http://www.youtube.com/watch?v=YyEfmDtxdhM
        \_ Straw man.
2007/8/7-9 [Uncategorized] UID:47552 Activity:low
8/6     Oh great, the motd stuff isn't working now.
        \_ what stuff?
2007/8/7-13 [Academia/Berkeley/CSUA/Motd] UID:47553 Activity:nil
8/7     /csua/bin is empty.  Likely this is why the motd isn't working.
2007/8/7-8 [Uncategorized] UID:47554 Activity:nil
8/7     RIP Hal Fishman.
2007/8/7-13 [Computer/SW/Languages/Perl, Computer/SW/Unix] UID:47555 Activity:nil
8/7     I'm trying to figure out whether it's possible for get wget to
        authenticate to a web page protected by a login form ('post'
        method to send username/pass, and cookies.)  Cookies don't seem
        to be the problem, with --save-cookies and --keep-session-cookies
        but getting the username/password submitted isn't doing it.  On
        this particular page, getting to a link, let's say 'example.aspx',
        redirects to 'login.aspx?href=/example.aspx'; login.aspx is a
        standard http form.  Anyone ever get this working?  -John
        \_ You want a single wget command or are you scripting this?
           If scripting just hit the logon page first to get your cookie.
           Otherwise you have to recognize you've been redirected.
        \_ Why wget?  Have you tried curl?
        \_ I've been able to get this working using wget's CLI options
           --user=[user] and --password=[passwd] or by posting the
           right form elements for authentication.
           \_ Yeah tried both, no good.  Curl sounds like it might
              work, though.  Thanks.  -John
        \_ If curl doesn't work for you, I've done this in perl before.  It
           isn't that hard with cpan's lwp, cookie libraries, etc.
           \_ Or if you hate Perl, Ruby does a good job too.
              \_ Curl works for submitting the credentials, but I'm having
                 trouble with cookies; the site issues 4 for a normal
                 browser login, but with curl I only get one.  I'll keep
                 plugging.  -John
              \_ How can you hate perl for a hack script like this?
2007/8/7-12 [Transportation/Car] UID:47556 Activity:nil
8/7     Servlet question. Let's say my servlet creates a session, and
        after timeout the servlet engine automatically invalidates the
        session. Is there a way to hook up the invalidation so that it'll
        call something like "MyOwnDataStructure.cleanup(session)" when
        the session has timed-out/invalidated? Thanks.
        \_ servlet spec 2.3 has HttpSessionListener interface.  Then it's
           up to the servlet engine to how you register this listener.
2007/8/7-13 [Recreation/Dating] UID:47557 Activity:nil
8/7     Fear of stocky black guy forces state legislator to pay him for sex:
        http://www.freerepublic.com/focus/f-news/1864758/posts
        \_ http://www.csua.org/u/jad
           Recreational Interest:
           water sports
2007/8/7-13 [Science/Space, Science/GlobalWarming] UID:47558 Activity:nil
8/7     The miner incident got me thinking a lot. Do they make those
        Juliet Pills where they slow down your heart rate and breathing
        rate to reduce metabolism, to conserve energy, oxygen, and such
        so that you'll have more time before you're rescued?
        \_ Such pills would have been useful on Apollo 13 and during the
           Russian submarine disaster a couple years ago.
           \_ How?  they all died anyway.
              \_ Maybe by keeping them from dying?
Berkeley CSUA MOTD:2007:August:07 Tuesday <Monday, Wednesday>