From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6e35c0620811212052n11bce732w23e8d11c516a37aa@mail.gmail.com> Date: Fri, 21 Nov 2008 19:52:11 -0900 From: "Jack Johnson" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3536c25c0811202152j23d297adp805636b008732293@mail.gmail.com> <42330b28d5142876a0484959661b62dc@quanstro.net> Subject: Re: [9fans] Gmail and upas Topicbox-Message-UUID: 50a5cb5c-ead4-11e9-9d60-3106f5b1d025 On Fri, Nov 21, 2008 at 5:43 AM, Rudolf Sykora wrote: > seems you use IMAP to read gmail. I usually read my gmail mail through > my web browser, which is not a problem from opera/firefox in linux. > However, I can't do the same from plan9. Neither abaco, nor charon > work. Is this so for everyone or just for me? Thanks. I remember looking into the problem with charon in the past using my feeble skills, so I just took another peek using: charon -dbg dnop -docookies 1 -doscripts 1 -usessl v3 -starturl 'http://mail.google.com/mail/h' -dbgfile gmail.out and based on the URL left in the address bar and the debug log, it looks like it fails somewhere around the last continue parameter from the last redirect. Authentication seems to be working; I can use iGoogle but not Gmail. There are some intermittent errors about SSL to ssl.google-analytics.com, but I don't think these are critical. One of the last requests seem to return a chunk of Javascript that does browser detection: https://mail.google.com/mail?view=page&name=browser&ver=1k96igf4806cy I tried some of the tricks found around the net to turn off browser detection with no success. I did find that the URL redirects seem to behave differently if I don't enable Javascript, but then it fails very strangely at the end with what appears to be an invalid request. The last valid request is: https://www.google.com/accounts/CheckCookie?continue=http%3A%2F%2Fmail.google.com%2Fmail%2Fh%2F19sso9tatmt7r%2F%3Fui%3Dhtml%26zy%3Dl&service=mail<mpl=default&chtml=LoginDoneHtml and then it follows up with: GO TO https://www.google.com/accounts/'http:/mail.google.com/mail/h/19sso9tatmt7r/?ui=html&zy=l' target frame name= Startreq BS=12 for https://www.google.com/accounts/'http:/mail.google.com/mail/h/19sso9tatmt7r/?ui=html&zy=l' Chose NC=0 for BS 12, qlen=1 NC 0: starting runnetconn in connect state http 0: dialing tcp!www.google.com!443 Waitreq Waitpending http 0: connected warning: unknown header field: X-Content-Type-Options: nosniff http 0: got response header: HTTP/1.0 404 Not Found which doesn't seem to match the continue parameter from the last request. -J