6 messages in com.googlegroups.bloggerdev[bloggerDev] Re: Authenticating to th...
FromSent OnAttachments
Cesco16 Jul 2008 06:02 
Cesco16 Jul 2008 07:04 
Trevor Johns16 Jul 2008 13:59 
Cesco17 Jul 2008 06:24 
Asger22 Jul 2008 01:27 
Cesco22 Jul 2008 06:45 
Subject:[bloggerDev] Re: Authenticating to the Blogger service using ActionScript
From:Trevor Johns (tjo@google.com)
Date:07/16/2008 01:59:49 PM
List:com.googlegroups.bloggerdev

Cesco, We currently do not support cross-domain requests to Google Accounts from Flash. There is currently an issue filed against this here:

http://code.google.com/p/gdata-issues/issues/detail?id=406

You may be able to work around this by proxying requests through your own domain, however.

On 7/16/08, Cesco <uce@gmail.com> wrote:

Hi guys,

I'm trying to get authenticating to the Blogger service, here is my code:

var httpRequest:HTTPService = new HTTPService(); var variables:URLVariables = new URLVariables();

httpRequest.useProxy = true; httpRequest.url = "https://www.google.com/accounts/ClientLogin"; httpRequest.method = URLRequestMethod.POST;

httpRequest.addEventListener(ResultEvent.RESULT, onResult); httpRequest.addEventListener(FaultEvent.FAULT, onFault);

variables.Email = <my-e-mail-here> variables.Passwd = <my-password-here> variables.service = "blogger"; variables.source = "exampleCo-exampleApp-1";

var request:URLRequest = new URLRequest(url);

request.method = URLRequestMethod.POST;

request.data = variables; httpRequest.request = request;

httpRequest.send();

But every time I'm getting following error:

Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://www.google.com/accounts/ClientLogin"]. URL: https://www.google.com/accounts/ClientLogin

Does anyone knows what's the problem?