google calendar api error lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- nomorelogic · 2015-05-14 13:30 hi all I'm playing with calendar demo (.../lazarus/components/googleapis/demo/calendar/calendardemo.lpr) using fpc 2.6.5 and lazarus 1.5 I followed README.txt instructions: I can run this demo and I can see calendards and events. In the events listbox I've added a double click event to try to update an event with following code: Code: [Select]procedure TMainForm.LBEventsDblClick(Sender: TObject); var Entry: TEvent; begin   Entry:=Events.items[LBEvents.ItemIndex];   Entry.description:=Entry.description+'[modified]';   try      FCalendarAPI.EventsResource.Update(FCurrentCalendar.ID, entry.id, Entry);      ShowMessage('response: ok');   except     on e: exception do begin        ShowMessage('response failed:'+#10+e.Message);     end;   end; end; I always get this negative response: Quote400 error executing request :  Bad Request Using debugger I can see request appear correct to me. Where I'm wrong? Thanks in advantage nomorelogic ---------------------------------------------------------------------- MvC · 2015-05-15 08:21 you can set the webclient.logfile to some valid filename and examine the resulting file after the request. It should contain the complete response of google Note that you better use the Patch method if you're just changing some properties. ---------------------------------------------------------------------- nomorelogic · 2015-05-15 13:08 just to document solution here in forum http://lists.lazarus.freepascal.org/pipermail/lazarus/2015- May/092247.html