Curious. I wonder what part of the request is failing. Maybe turning on debug logging can shed some light on what's going on here?
http://gdatatips.blogspot.com/2008/07/enable-request-debugging-in-php-client.html Cheers, -Jeff On Wed, Jan 7, 2009 at 4:11 AM, TonyDong <[email protected]> wrote: > Hi Jeff, > > yes, I'm uploading the private key file. I know this because I previously > had this issue of not uploading it and > --- > $client = $this->getAuthSubHttpClient(); > --- > would not work. > Now it does andget album feed works too > --- > $photos->getAlbumFeed($query); > --- > But only get photo feed doesn't. > --- > $photoFeed = $photos->getPhotoFeed($query); > --- > > When I dump out the $query in both cases I can access both from my browser. > > thanks and regards, > Tony. > > On 06/01/2009, at 6:33 PM, Jeff Fisher wrote: > > When you are using secure=1, are you setting the private key file that > corresponds to the public certificate you uploaded for the domain? > > Some reference code here: > > http://code.google.com/apis/gdata/authsub.html > > Cheers, > -Jeff > > On Tue, Jan 6, 2009 at 3:27 AM, TonyDong <[email protected]> wrote: > >> >> Hi Jeff/all, >> >> I have a secure webalbums integration working with certs and all. I >> use the Zend Picasa libs. >> I can get all album information fine eg >> --- >> $photos->getAlbumFeed($query); >> --- >> >> However I'm having this problem with the getPhotoFeed function. >> ---- >> $client = $this->getAuthSubHttpClient(); >> $photos = new Zend_Gdata_Photos($client); >> >> $query = new Zend_Gdata_Photos_PhotoQuery(); >> $query->setUser($user); >> $query->setAlbumId($albumId); >> $query->setPhotoId($photoId); >> $query = $query->getQueryUrl() . "?kind=comment,tag"; >> >> $photoFeed = $photos->getPhotoFeed($query); >> ---- >> >> At this point I get an exception: >> --- >> Fatal error: Uncaught exception >> 'Zend_Gdata_App_HttpException' with message 'Expected response code >> 200, got 403 Unknown authorization header' >> --- >> >> When I dump the $query I get a valid url which I can hit in my browser >> (since I'm authenticated) >> But if I try to >> --- >> file_get_contents($query); >> --- >> I also get a >> --- >> failed to open stream: HTTP request failed! HTTP/1.0 403 >> Forbidden >> --- >> >> lastly, if I do NOT use secure=1 everything works. >> >> Any ideas what this might be? >> >> thanks and regards, >> Tony. >> >> >> > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
