9 messages in com.googlegroups.google-picasa-data-apiRe: Deleting a Photo thru Actionscrip...
FromSent OnAttachments
Ivo18 Feb 2008 12:43 
Ryan Boyd (Google)18 Feb 2008 13:16 
Ivo18 Feb 2008 13:30 
Ryan Boyd (Google)18 Feb 2008 13:41 
Ivo18 Feb 2008 14:19 
Ryan Boyd (Google)18 Feb 2008 14:30 
Ivo19 Feb 2008 13:03 
Ivo19 Feb 2008 15:56 
Ivo19 Feb 2008 16:14 
Subject:Re: Deleting a Photo thru Actionscript issue
From:Ryan Boyd (Google) (api.@google.com)
Date:02/18/2008 01:41:18 PM
List:com.googlegroups.google-picasa-data-api

Hi Ivo,

The response body you printed looks like it may be a gzipped response which isn't being properly decoded. You could try disabling gzipped responses by adding an additional header 'Accept-Encoding' with a blank value.

Cheers, -Ryan

On Feb 18, 2008 1:30 PM, Ivo <iple@gmail.com> wrote:

Hi Ryan,

I am currently using Adobe AIR to develop which doesnt run within a browser so the Player restrictions must not apply. I can run thru ClientLogin and list my private albums & photos with no problems. I guess I'll run the code thru a proxy like you suggest so I can examine the actual headers.

Until I get to that any suggestions of what I might be missing are very welcome.

Thanks,

On Feb 18, 1:17 pm, "Ryan Boyd (Google)" <api.@google.com> wrote:

Hi Ivo,

The edit-media link should be used to delete an entry, and the X-HTTP-Method-Override header should work fine as well.

I thought ActionScript blocked the Authorization header from being set?: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403030&sl...

Are you able to capture the HTTP traffic being sent using a tool like Fiddler, Wireshark or tcpdump?: http://code.google.com/support/bin/answer.py?answer=71567&topic=11369

Cheers, -Ryan

On Feb 18, 2008 12:44 PM, Ivo <iple@gmail.com> wrote:

Hello,

I am able to use ClientLogin to authenticate, list albums & their photos successfully. I seem unable to delete photos tho.

I am getting the Photo "edit-media" from the album feed then I POST back to it:

//editUrl is the edit-media link http_service.url = editUrl; http_service.method = 'POST';

var _headers:Object = {Authorization: "GoogleLogin auth="+m_authenticatedToken}; _headers['X-HTTP-Method-Override'] = 'DELETE';

http_service.headers = _headers; http_service.send();

The code above is the same as used to log in and list feeds. For the delete POST tho what I get back is a response with no headers & the only contents of the body are:

ÿØÿà

Any suggestions as to what the issue might be?

Thanks,