From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Qiang Guo Newsgroups: gmane.emacs.help Subject: About http-post Date: Sat, 03 Jul 2010 13:41:00 -0600 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1278186103 10785 80.91.229.12 (3 Jul 2010 19:41:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Jul 2010 19:41:43 +0000 (UTC) To: Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 03 21:41:41 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 1OV8ap-0005Eh-G6 for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jul 2010 21:41:39 +0200 Original-Received: from localhost ([127.0.0.1]:43124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OV8ao-000852-Tx for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jul 2010 15:41:38 -0400 Original-Received: from [140.186.70.92] (port=54434 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OV8aP-00083e-Pn for help-gnu-emacs@gnu.org; Sat, 03 Jul 2010 15:41:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OV8aO-0001Is-Jl for help-gnu-emacs@gnu.org; Sat, 03 Jul 2010 15:41:13 -0400 Original-Received: from mail-px0-f169.google.com ([209.85.212.169]:51922) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OV8aO-0001Ig-FK for help-gnu-emacs@gnu.org; Sat, 03 Jul 2010 15:41:12 -0400 Original-Received: by pxi17 with SMTP id 17so4307754pxi.0 for ; Sat, 03 Jul 2010 12:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:message-id:from:to :subject:user-agent:mime-version:content-type; bh=fhr9CrVIxY3MH8AdOZgSQq5Rk/NwW1czP1nK/q26bv4=; b=l43/g7oOREi0yNPEvzo/WpchRLfaZrPIBdE3uVVpa2WxfqpI7SeJpjj7cFop6bukYI PM70PLChjy/miiIJWvqjWtXeZkCbJabgREGVOpLivjjqukkYf5V005KlTdvmiDyNqb5U IH79gq0KGJYunC4AAM5anZjoxc6GGcgkKcp5Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:from:to:subject:user-agent:mime-version :content-type; b=wpneWn0W5s4oytTYhs4ePmVzJWAb4OnAfF3cIqkQN10YqI265zDZaEhXGhmkQBnEiM SraQL18TsOLL7IobIOJLv3VvzwnHT6tA0o71511ZQeCV941+4ii0nVts8iorES1outwZ jbBPzR/8QtnF+e7sOEhaOQvupjtJu/rDiNzNs= Original-Received: by 10.114.72.9 with SMTP id u9mr751976waa.137.1278186071113; Sat, 03 Jul 2010 12:41:11 -0700 (PDT) Original-Received: from Qiang-Guos-MacBook-Pro.local.gmail.com (d75-152-224-210.abhsia.telus.net [75.152.224.210]) by mx.google.com with ESMTPS id c24sm33055051wam.19.2010.07.03.12.41.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 03 Jul 2010 12:41:10 -0700 (PDT) User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.2 (x86_64-apple-darwin10.4.0) MULE/6.0 (HANACHIRUSATO) 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:74059 Archived-At: 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 "POST") (url-request-extra-headers `(("Content-Type" . "application/x-www-form-urlencoded"))) (url-request-data "accountType=HOSTED_OR_GOOGLE&Email=xx@gmail.com&Passwd=xx")) (with-current-buffer (url-retrieve-synchronously "https://www.google.com/accounts/ClientLogin") (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