help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About http-post


From: Ken Hori
Subject: Re: About http-post
Date: Sat, 3 Jul 2010 13:27:13 -0700

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 <address@hidden> 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        "POST")
>      (url-request-extra-headers `(("Content-Type" . 
> "application/x-www-form-urlencoded")))
>      (url-request-data  
> "accountType=HOSTED_OR_GOOGLE&address@hidden&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 via email to

[Prev in Thread] Current Thread [Next in Thread]