2nd try worked...

on the playground form with the PUT ( no http header was included )
(content type field on form = 'application/atom+xml'

copy the response from the request on the link rel='edit' URL into the
request body for the PUT

details:

PUT /data/entry/api/user/default/albumid/5682316071017984417/photoid/
5682316323793306546/6 HTTP/1.1
Host: picasaweb.google.com
Content-Length: 4248
Content-Type: application/atom+xml
Authorization: OAuth
ya29.AHES6ZRzqw3jqIcxRBIRCmxVw2UuXZT3AAzQnjMLUvujx7_bT7f4YQ
<entry xmlns='http://www.w3.org/2005/Atom' xmlns:exif='http://
schemas.google.com/photos/exif/2007' xmlns:gphoto='http://
schemas.google.com/photos/2007' xmlns:media='http://search.yahoo.com/
mrss/' xmlns:gml='http://www.opengis.net/gml' xmlns:georss='http://
www.georss.org/georss'><id>https://picasaweb.google.com/data/entry/api/user/default/albumid/5682316071017984417/photoid/5682316323793306546</id><published>2011-12-04T16:49:27.000Z</published><updated>2011-12-13T22:59:08.677Z</updated><category
scheme='http://schemas.google.com/g/2005#kind' term='http://
schemas.google.com/photos/2007#photo'/><title
type='text'>DSC01628.JPG</title><summary type='text'/><content
type='image/jpeg' src='https://lh5.googleusercontent.com/-pOSyWKgZ6Ec/
Ttuklx0ag7I/AAAAAAAAClw/rXw3WYZgw74/DSC01628.JPG'/><link rel='http://
schemas.google.com/g/2005#feed' type='application/atom+xml'
href='https://picasaweb.google.com/data/feed/api/user/rowntreerob/
albumid/5682316071017984417/photoid/5682316323793306546'/><link
rel='alternate' type='text/html' href='https://picasaweb.google.com/
113172267863552078400/WirelessBaseStationNew#5682316323793306546'/
><link rel='http://schemas.google.com/photos/2007#canonical'
type='text/html' href='https://picasaweb.google.com/lh/photo/
zkAmcCMDL9IAuICNlLunaNMTjNZETYmyPJy0liipFm0'/><link rel='self'
type='application/atom+xml' href='https://picasaweb.google.com/data/
entry/api/user/rowntreerob/albumid/5682316071017984417/photoid/
5682316323793306546'/><link rel='edit' type='application/atom+xml'
href='https://picasaweb.google.com/data/entry/api/user/rowntreerob/
albumid/5682316071017984417/photoid/5682316323793306546/6'/><link
rel='edit-media' type='image/jpeg' href='https://picasaweb.google.com/
data/media/api/user/rowntreerob/albumid/5682316071017984417/photoid/
5682316323793306546/6'/><link rel='media-edit' type='image/jpeg'
href='https://picasaweb.google.com/data/media/api/user/rowntreerob/
albumid/5682316071017984417/photoid/5682316323793306546/6'/><link
rel='http://schemas.google.com/photos/2007#report' type='text/html'
href='https://picasaweb.google.com/lh/reportAbuse?
uname=rowntreerob&amp;aid=5682316071017984417&amp;iid=5682316323793306546'/
><gphoto:id>5682316323793306546</gphoto:id><gphoto:version>6</
gphoto:version><gphoto:albumid>5682316071017984417</
gphoto:albumid><gphoto:access>public</
gphoto:access><gphoto:width>1600</gphoto:width><gphoto:height>1065</
gphoto:height><gphoto:size>294308</gphoto:size><gphoto:client>picasa</
gphoto:client><gphoto:checksum>85d6c09d</
gphoto:checksum><gphoto:timestamp>1322986759000</
gphoto:timestamp><gphoto:imageVersion>2652</
gphoto:imageVersion><gphoto:commentingEnabled>true</
gphoto:commentingEnabled><gphoto:commentCount>1</
gphoto:commentCount><gphoto:license id='0' name='All Rights Reserved'
url=''>ALL_RIGHTS_RESERVED</gphoto:license><gphoto:viewCount>20</
gphoto:viewCount><exif:tags><exif:fstop>5.6</
exif:fstop><exif:make>SONY</exif:make><exif:model>NEX-5</
exif:model><exif:exposure>0.008</exif:exposure><exif:flash>false</
exif:flash><exif:focallength>18.0</exif:focallength><exif:iso>200</
exif:iso><exif:time>1322986759000</
exif:time><exif:imageUniqueID>c8882242c943a633208c570e11810493</
exif:imageUniqueID></exif:tags><media:group><media:content
url='https://lh5.googleusercontent.com/-pOSyWKgZ6Ec/Ttuklx0ag7I/
AAAAAAAAClw/rXw3WYZgw74/DSC01628.JPG' height='1065' width='1600'
type='image/jpeg' medium='image'/><media:credit>Robert Rowntree</
media:credit><media:description type='plain'/><media:keywords/
><media:thumbnail url='https://lh5.googleusercontent.com/-pOSyWKgZ6Ec/
Ttuklx0ag7I/AAAAAAAAClw/rXw3WYZgw74/s72/DSC01628.JPG' height='48'
width='72'/><media:thumbnail url='https://lh5.googleusercontent.com/-
pOSyWKgZ6Ec/Ttuklx0ag7I/AAAAAAAAClw/rXw3WYZgw74/s144/DSC01628.JPG'
height='96' width='144'/><media:thumbnail url='https://
lh5.googleusercontent.com/-pOSyWKgZ6Ec/Ttuklx0ag7I/AAAAAAAAClw/
rXw3WYZgw74/s288/DSC01628.JPG' height='192' width='288'/><media:title
type='plain'>DSC01628.JPG</media:title></
media:group><georss:where><gml:Envelope><gml:lowerCorner>37.750073
-122.412454</gml:lowerCorner><gml:upperCorner>37.7507039 -122.4107629</
gml:upperCorner></gml:Envelope><gml:Point><gml:pos>37.7503885
-122.4116085</gml:pos></gml:Point></georss:where></entry>
HTTP/1.1 200 OK
status: 200
gdata-version: 1.0
content-length: 4286
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
set-cookie: _rtok=RW2xfXPYcZOv; Path=/; Secure; HttpOnly,
S=photos_html=UzorUSG-tBATOJMVvFkvlg; Domain=.google.com; Path=/;
Secure; HttpOnly
expires: Thu, 15 Dec 2011 15:47:00 GMT
x-google-cache-control: remote-fetch
server: GSE
via: HTTP/1.1 GWA
cache-control: private, max-age=0, must-revalidate
date: Thu, 15 Dec 2011 15:47:00 GMT
x-frame-options: SAMEORIGIN
content-type: application/atom+xml; charset=UTF-8
-content-encoding: gzip

On Dec 14, 5:50 pm, rowntreerob <[email protected]> wrote:
> Used the playground to GET a photo for update , moving the respose of
> the GET to the request body of a PUT ( did not try to change any of
> the xml in the response from the GET. I wanted to see if i could
> follow the GET with a PUT ...
>
> 1. request the photofeed and use the edit link value to make a request
> preceeding update
>
> 2. GET the 'edit'  link from above http response
>
> 3. copy the response value as it is to the PUT request body using the
> playground option for PUT
>
> 4. add http header for Content type application/atom+xml
>
> 5. submit the PUT request get RC=409  ( why am i getting the 409? )
>
> --stdout part of playground on the http PUT action
>
> PUT /data/entry/api/user/default/albumid/5648359241742119377/photoid/
> 5648359338818857554/1 HTTP/1.1
> Host: picasaweb.google.com
> Content-Length: 3934
> Content-Type: application/atom+xml
> Authorization: OAuth
> ya29.AHES6ZSzi8EPLJonC2ggdmnbrxW6N7OboWUspsVTT6BTanyfFG9Stw
> <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/
> 2005/Atom' xmlns:exif='http://schemas.google.com/photos/exif/2007'
> xmlns:gphoto='http://schemas.google.com/photos/2007'
> xmlns:media='http://search.yahoo.com/mrss/'><id>https://
> picasaweb.google.com/data/entry/api/user/rowntreerob/albumid/
> 5648359241742119377/photoid/5648359338818857554</
> id><published>2011-09-04T04:39:00.000Z</
> published><updated>2011-12-15T00:39:17.916Z</updated><category
> scheme='http://schemas.google.com/g/2005#kind'term='http://
> schemas.google.com/photos/2007#photo'/><title type='text'>15.jpg</
> title><summary type='text'/><content type='image/jpeg' src='https://
> lh6.googleusercontent.com/--WdhQDd2XQg/TmMA5HIO6lI/AAAAAAAACl4/
> HSx9fZg4r2o/15.jpg'/><link rel='http://schemas.google.com/g/2005#feed'
> type='application/atom+xml' href='https://picasaweb.google.com/data/
> feed/api/user/rowntreerob/albumid/5648359241742119377/photoid/
> 5648359338818857554?authkey=Gv1sRgCLTPnJ-OmpCPeg'/><link
> rel='alternate' type='text/html' href='https://picasaweb.google.com/
> 113172267863552078400/Alcan_trips_76_77?authkey=Gv1sRgCLTPnJ-
> OmpCPeg#5648359338818857554'/><link rel='http://schemas.google.com/
> photos/2007#canonical' type='text/html' href='https://
> picasaweb.google.com/lh/photo/
> HBkeleItbkJ1EfKhD4p0CMkoderF_EbNPgy6reFrVz0'/><link rel='self'
> type='application/atom+xml' href='https://picasaweb.google.com/data/
> entry/api/user/rowntreerob/albumid/5648359241742119377/photoid/
> 5648359338818857554?authkey=Gv1sRgCLTPnJ-OmpCPeg'/><link rel='edit'
> type='application/atom+xml' href='https://picasaweb.google.com/data/
> entry/api/user/rowntreerob/albumid/5648359241742119377/photoid/
> 5648359338818857554/3?authkey=Gv1sRgCLTPnJ-OmpCPeg'/><link rel='edit-
> media' type='image/jpeg' href='https://picasaweb.google.com/data/media/
> api/user/rowntreerob/albumid/5648359241742119377/photoid/
> 5648359338818857554/3?authkey=Gv1sRgCLTPnJ-OmpCPeg'/><link rel='media-
> edit' type='image/jpeg' href='https://picasaweb.google.com/data/media/
> api/user/rowntreerob/albumid/5648359241742119377/photoid/
> 5648359338818857554/3?authkey=Gv1sRgCLTPnJ-OmpCPeg'/><link rel='http://
> schemas.google.com/photos/2007#report' type='text/html' href='https://
> picasaweb.google.com/lh/reportAbuse?
> uname=rowntreerob&amp;aid=5648359241742119377&amp;iid=5648359338818857554'/><gphoto:id>5648359338818857554</gphoto:id><gphoto:version>3</
>
> gphoto:version><gphoto:albumid>5648359241742119377</
> gphoto:albumid><gphoto:access>private</
> gphoto:access><gphoto:width>1338</gphoto:width><gphoto:height>903</
> gphoto:height><gphoto:size>213425</gphoto:size><gphoto:client>picasa</
> gphoto:client><gphoto:checksum>3d8ac08e</
> gphoto:checksum><gphoto:timestamp>189345600000</
> gphoto:timestamp><gphoto:imageVersion>2654</
> gphoto:imageVersion><gphoto:commentingEnabled>true</
> gphoto:commentingEnabled><gphoto:commentCount>0</
> gphoto:commentCount><gphoto:license id='0' name='All Rights Reserved'
> url=''>ALL_RIGHTS_RESERVED</gphoto:license><gphoto:viewCount>4</
> gphoto:viewCount><exif:tags><exif:make>Nikon</
> exif:make><exif:model>LS-4000</exif:model><exif:time>189345600000</
> exif:time><exif:imageUniqueID>ac000b1a548d161cf12e1bf81865b304</
> exif:imageUniqueID></exif:tags><media:group><media:content
> url='https://lh6.googleusercontent.com/--WdhQDd2XQg/TmMA5HIO6lI/
> AAAAAAAACl4/HSx9fZg4r2o/15.jpg' height='903' width='1338' type='image/
> jpeg' medium='image'/><media:credit>Robert Rowntree</
> media:credit><media:description 
> type='plain'/><media:keywords/><media:thumbnail 
> url='https://lh6.googleusercontent.com/--WdhQDd2XQg/
>
> TmMA5HIO6lI/AAAAAAAACl4/HSx9fZg4r2o/s72/15.jpg' height='49' 
> width='72'/><media:thumbnail 
> url='https://lh6.googleusercontent.com/--WdhQDd2XQg/
>
> TmMA5HIO6lI/AAAAAAAACl4/HSx9fZg4r2o/s144/15.jpg' height='98'
> width='144'/><media:thumbnail url='https://lh6.googleusercontent.com/--
> WdhQDd2XQg/TmMA5HIO6lI/AAAAAAAACl4/HSx9fZg4r2o/s288/15.jpg'
> height='195' width='288'/><media:title type='plain'>15.jpg</
> media:title></media:group></entry>
>
> HTTP/1.1 409 Conflict
> status: 409
> gdata-version: 1.0
> content-length: 3933
> x-xss-protection: 1; mode=block
> x-content-type-options: nosniff
> set-cookie: _rtok=87Nnl1AAqyKd; Path=/; Secure; HttpOnly,
> S=photos_html=h0RsTa9ibHNGh7L7hhKElg; Domain=.google.com; Path=/;
> Secure; HttpOnly
> expires: Thu, 15 Dec 2011 01:38:30 GMT
> x-google-cache-control: remote-fetch
> server: GSE
> via: HTTP/1.1 GWA
> cache-control: private, max-age=0, must-revalidate
> date: Thu, 15 Dec 2011 01:38:30 GMT
> x-frame-options: SAMEORIGIN
> content-type: application/atom+xml; charset=UTF-8
> -content-encoding: gzip

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to