Are you saving your session token in a database or as a session variable? My best guess is that when your app makes the Curl Request that the session token for gdata isn't being saved. So when the image upload goes to run again (after curl function), the real problem may be that you are sending the request without the Session token. Use wireshark to check the outbound request and see if the session token is in the request after the Curl function runs.
Lee Lee Evans ClearTours, Inc. -----Original Message----- From: google-picasa-data-api@googlegroups.com [mailto:google-picasa-data-...@googlegroups.com] On Behalf Of Marcin Glowacki Sent: Tuesday, January 05, 2010 12:10 PM To: google-picasa-data-api@googlegroups.com Subject: Re: [PWA API] cURL affects gdata api Lee Evans pisze: > How are you authenticating the user via the API? OAuth, AuthSub, etc? > > Whatever way you are authenticating to send the file, you have to use the > same method to make additional requests. > > If you post your function that uploads your image, it might shed some light > on the problem. > > Lee > > Thanks for reply, i'm authenticating using authsub, and then session_token. uploading pictures with: public function addPhoto($albumId, $photo) { $client = null; $user = 'default'; try { $client = $this->getAuthSubHttpClient(); } catch(Exception $e) { throw $e; } $photos = new Zend_Gdata_Photos($client); $fd = $photos->newMediaFileSource($photo["file"]); $fd->setContentType($photo["type"]); $entry = new Zend_Gdata_Photos_PhotoEntry(); $entry->setMediaSource($fd); $entry->setTitle($photos->newTitle($photo["name"])); $albumQuery = new Zend_Gdata_Photos_AlbumQuery; $albumQuery->setUser($user); $albumQuery->setAlbumId($albumId); $albumEntry = $photos->getAlbumEntry($albumQuery); $result = $photos->insertPhotoEntry($entry, $albumEntry); if (!$result) { throw new Exception('There was an issue with the file upload.'); } } i think the problem is with curl that i've posted previously, upload function is working fine without that other curl. My curl function is not used with picasa, it does sth else ;-)
-- 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 google-picasa-data-...@googlegroups.com. To unsubscribe from this group, send email to google-picasa-data-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en.