all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Qiang Guo <mcknight0219@gmail.com>
To: Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: About http-post
Date: Sat, 03 Jul 2010 13:41:00 -0600	[thread overview]
Message-ID: <m21vbktktv.wl%Mcknight@Qiang-Guos-MacBook-Pro.local> (raw)

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



             reply	other threads:[~2010-07-03 19:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-03 19:41 Qiang Guo [this message]
2010-07-03 20:27 ` About http-post Ken Hori
2010-07-03 20:30   ` Qiang Guo
2010-07-03 20:37     ` Ken Hori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m21vbktktv.wl%Mcknight@Qiang-Guos-MacBook-Pro.local \
    --to=mcknight0219@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.