Peter Holemans
[WX12] HTTP PUT and HTTP DELETE methods via httpRequest() September 02, 2008 03:50PM |
Peter Holemans
Re: [WX12] Possible Solution - HTTP PUT and HTTP DELETE methods via httpRequest() September 02, 2008 11:51PM |
Alexandre Leclerc
Re: [WX12] Possible Solution - HTTP PUT and HTTP DELETE methods via httpRequest() September 03, 2008 04:31PM |
Peter Holemans
Re: [WX12] Possible Solution - HTTP PUT and HTTP DELETE methods via httpRequest() September 04, 2008 11:20AM |
David
Re: [WX12] Possible Solution - HTTP PUT and HTTP DELETE methods via httpRequest() November 25, 2008 09:39AM |
Peter Holemans
Re: [WX12] Possible Solution - HTTP PUT and HTTP DELETE methods via httpRequest() November 25, 2008 09:13PM |
...blablabla previous code in Method FUNCTION gCal_AddEvent(lint_CoworkerID is int = 0) //Set URL lstr_gCalendarURL = StringBuild(::URL_GCAL_REQUEST,:str_gCalAccount) lstr_GCalendarAUTHHeader = StringBuild(::URL_GCAL_REQUEST_AUTH_HEADER,:str_gCalLoginAUTH) //Build XML Message //%1 = Title or subject //%2 = Body //%3 = Location //%4 = Startdate yyyy-mm-dd %5 = Starttime HH:MMS:CCC //%6 = Enddate yyyy-mm-dd %7 = Endtime HH:MMS:CCC //%8 = Reminder days lstr_XMLBody = StringBuild(:ML_GCAL_ADD_EVENT, TextToXML(MeetingRequest.Subject), TextToXML(MeetingRequest.Notes), TextToXML(MeetingRequest.Location), ... TextToXML(DateToString(MeetingRequest.MeetingDate,"AAAA-MM-JJ")),TextToXML(TimeToString(MeetingRequest.StartTime,"HH:MMS")), ... TextToXML(DateToString(MeetingRequest.MeetingDate,"AAAA-MM-JJ")),TextToXML(TimeToString(MeetingRequest.EndTime,"HH:MMS")),"1440") //Convert to UTF8 lstr_XMLBodyAsUTF8 = StringToUTF8(lstr_XMLBody) IF lstr_XMLBodyAsUTF8 <> EOT THEN lstr_XMLBody = lstr_XMLBodyAsUTF8 END //Send HTTP Request IF HTTPRequest(lstr_gCalendarURL,::URL_GCAL_REQUEST_AGENT,lstr_GCalendarAUTHHeader,lstr_XMLBody,::URL_GCAL_CONT_TYPE_ADD) THEN //Get reply lstr_gCalHeaderReply = HTTPGetResult(HTTPHeader) lstr_gCalDetailReply = HTTPGetResult(HTTPResult) // 200 OK No Error. // 201 CREATED Creation of A resource was successful. // 304 NOT MODIFIED The resource hasn't changed since the time specified IN the request's IF-Modified-Since header. // 400 BAD REQUEST Invalid request URI OR header, OR unsupported nonstandard parameter. // 401 UNAUTHORIZED Authorization required. // 403 FORBIDDEN Unsupported standard parameter, OR authentication OR authorization failed. // 404 NOT FOUND Resource (such as A feed OR entry) NOT found. // 409 CONFLICT Specified version number doesn't match resource's latest version number. // 500 INTERNAL SERVER Error Internal Error. This is the Default code that is used FOR ALL unrecognized errors.And now... as of version 14, all Google apps are natively integrated into W-Language using Gglxxx commands... This could have saved me lots of time......blablabla next code in method