From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Hori Newsgroups: gmane.emacs.help Subject: Re: About http-post Date: Sat, 3 Jul 2010 13:27:13 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1278188863 17985 80.91.229.12 (3 Jul 2010 20:27:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Jul 2010 20:27:43 +0000 (UTC) Cc: Emacs mailing list To: Qiang Guo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 03 22:27:42 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OV9JN-00051N-Ac for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jul 2010 22:27:41 +0200 Original-Received: from localhost ([127.0.0.1]:60615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OV9JM-0006YV-Ov for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jul 2010 16:27:40 -0400 Original-Received: from [140.186.70.92] (port=41183 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OV9Iy-0006YG-66 for help-gnu-emacs@gnu.org; Sat, 03 Jul 2010 16:27:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OV9Ix-0000CZ-53 for help-gnu-emacs@gnu.org; Sat, 03 Jul 2010 16:27:16 -0400 Original-Received: from mail-px0-f179.google.com ([209.85.212.179]:64599) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OV9Iw-0000CK-W7 for help-gnu-emacs@gnu.org; Sat, 03 Jul 2010 16:27:15 -0400 Original-Received: by pxi16 with SMTP id 16so286820pxi.38 for ; Sat, 03 Jul 2010 13:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=sgxymesbJqtqODLGFWdvFhTcOCvbK2TsC06rQgf1rNE=; b=IqPjiAuZpIWAGS3YAiQKVNrR0iIX0SQi8v6TdMDh56SrpD7KoXd1A4OdEwudEQIaLn c8Hu9oqzx4MoCB0q+oBRfCxfWHc1RtaIv8w8rUeJvcDxhOxkYO8cH9OtGxY3Y4+VRdgF VEu3IUpX3bWG4TFnAXNHs+GHNc5tRebcIIOLc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=DW9BkHTnmND2Er078o+M1e0CokBwhXdwy4g5sPcboyyBhV/75LDM68jjw+04FlytI/ m3rZQe6ZXMPErIPcbpzj/xHxCO+yTuciWW5z/ytyGek+0FnNCXSArHwjBZRZzydNWOGk Q41QJZoZgThxoWi9Ed1hxXC95PiNJgbTFhiP4= Original-Received: by 10.142.215.19 with SMTP id n19mr878989wfg.336.1278188833407; Sat, 03 Jul 2010 13:27:13 -0700 (PDT) Original-Received: by 10.142.111.3 with HTTP; Sat, 3 Jul 2010 13:27:13 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74060 Archived-At: Maybe you are aware of it, but you will be sending your password in plaintext with that POST request, you know. Are you sure that's what you want? I thought they provided more secure method of authenticating your identity (with oouth or whatever). On Sat, Jul 3, 2010 at 12:41 PM, Qiang Guo wrote: > Hi > > Does anyone ever use Google login service in emacs ? It > says that you need to post to its login server, so I tried > the following code: > ++--------------------------------------------- > (let ((url-request-method =A0 =A0 =A0 =A0"POST") > =A0 =A0 =A0(url-request-extra-headers `(("Content-Type" . "application/x-= www-form-urlencoded"))) > =A0 =A0 =A0(url-request-data =A0"accountType=3DHOSTED_OR_GOOGLE&Email=3Dx= x@gmail.com&Passwd=3Dxx")) > =A0(with-current-buffer (url-retrieve-synchronously "https://www.google.c= om/accounts/ClientLogin") > =A0 =A0(buffer-string))) > ++--------------------------------------------- > However, the code hangs after openning connection and never > revive. What's the problem here ? > > Also, does url-retrieve-synchronously have some time-out > function, so it doesn't have to wait forever ! > > Thanks > > Qiang > >