Hi,
I solved this issue by setting headers:
$client->setHeaders("X-HTTP-Method-Override: DELETE");
and
$client->setHeaders("X-HTTP-Method-Override: PUT");
cheers
michal
On 1/19/07, Ryan Boyd (Google) <[EMAIL PROTECTED]> wrote:
>
> Hello Michal,
>
> Try doing this before you call the delete and see if it solves the
> problem:
> $client->setConfig(array('strictredirects' => true));
>
> There was a bug with how Zend was handling the redirects when getting a
> HttpClient from ClientLogin authentication, which this solves. I
> believe it was fixed in SVN, but is not yet in the binary releases.
>
> Let us know how that works.
>
> Cheers,
>
> -Ryan
>
>
>
>
> On Jan 17, 2:45 am, "Micha Wojtera" <[EMAIL PROTECTED]> wrote:
> > Hi everyone,
> >
> > I've been trying to solve this issue for several days and I have ran
> > out of ideas, so maybe you can find out what I am doing wrong.
> >
> > I tried several aproaches:
> > 1. I get the id from a feed and use Zeng_Gdata_Calendar::delete(id),
> > which should take the id link,
> > get a feed from the Calendar, get its edit link and submit a 'DELETE
> > edit link' request.
> >
> > $client = Zend_Gdata_ClientLogin::getHttpClient($email, $passwd, 'cl');
> > $gdata = new Zend_Gdata($client);
> > $gdataCal->delete($_GET['id']);
> >
> > Not working, this is a piece of code used in the exact same way in the
> > Zend Gdata example (no, the example doesn't work either)
> >
> > 2. I tried direct deleting using Zend_Http_Client
> >
> > $client = Zend_Gdata_ClientLogin::getHttpClient($email, $passwd, 'cl');
> > $client->setUri($edit_link);
> > $client->request('DELETE');
> >
> > Not working
> >
> > I was worried that my computer or server blocks the DELETE requests, so
> > I turned it off for some time, but that didn't work either.
> >
> > thanks,
> > michal
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data 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-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---