9 messages in com.googlegroups.google-picasa-data-apiRe: Deleting a Photo thru Actionscrip...| From | Sent On | Attachments |
|---|---|---|
| Ivo | 18 Feb 2008 12:43 | |
| Ryan Boyd (Google) | 18 Feb 2008 13:16 | |
| Ivo | 18 Feb 2008 13:30 | |
| Ryan Boyd (Google) | 18 Feb 2008 13:41 | |
| Ivo | 18 Feb 2008 14:19 | |
| Ryan Boyd (Google) | 18 Feb 2008 14:30 | |
| Ivo | 19 Feb 2008 13:03 | |
| Ivo | 19 Feb 2008 15:56 | |
| Ivo | 19 Feb 2008 16:14 |
| Subject: | Re: Deleting a Photo thru Actionscript issue![]() |
|---|---|
| From: | Ivo (iple...@gmail.com) |
| Date: | 02/19/2008 01:03:24 PM |
| List: | com.googlegroups.google-picasa-data-api |
Hi Ryan,
I haven't gotten a proxy yet but tried with cURL to delete an image & got back the image. Perhaps I am using cURL incorrectly? I am using this:
curl -i --header "X-HTTP-Method-Override: DELETE" --header "Authorization: GoogleLogin auth=<very-long-token-here" http://picasaweb.google.com/data/media/api/user/ipletikosic/albumid/<albumID>/photoid/<photoID>/<version>
Thanks,
- Ivo
On Feb 18, 2:31 pm, "Ryan Boyd (Google)" <api....@google.com> wrote:
Hi Ivo,
A GET request to the edit-media link would cause the photo to be retreived.
You could try sending the same request to the ordinary 'edit' link to see if that works. If it returns the XML of the entry, then it's definitely performing a GET request.
Cheers, -Ryan
On Feb 18, 2008 2:19 PM, Ivo <iple...@gmail.com> wrote:
How funny.. A search for that string (ÿØÿà ) gave me a reply that is it the header in jpg files. Seems the file is echoed back maybe? Anyways, once I get the proxy setup I'll know better.
Thanks!
- Ivo
On Feb 18, 1:41 pm, "Ryan Boyd (Google)" <api....@google.com> wrote:
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,
- Ivo
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?:
..
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,




