[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
About http-post
From: |
Qiang Guo |
Subject: |
About http-post |
Date: |
Sat, 03 Jul 2010 13:41:00 -0600 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.2 (x86_64-apple-darwin10.4.0) MULE/6.0 (HANACHIRUSATO) |
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
- About http-post,
Qiang Guo <=