Arno Garrels wrote:
> Kamil Pavel Skála wrote:
>> Hi,
>> i test the ics komponent and creating RESTful service, but have
>> problem with implementing unimplemented
>> request PUT. I handled PUT and DELETE in the OnUnknownRequest, bud
>> where is data sending by client via PUT method?
>>
>> Any samples or documentation?
>
> PUT method is very similar to POST
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
> The OverbyteIcsWebServ demo shows how to handle POST
> requests.
It's likely most simple to just override
THttpConnection.TriggerUnknownRequestMethod and then handle
PUT requests in the OnPostDocument and OnPostedData events as well.
{code}
procedure TMyHttpConnection.TriggerUnknownRequestMethod(var Handled: Boolean);
begin
if Method = 'PUT' then
begin
ProcessPost;
Handled := True;
end
else
inherited;
end;
{code}
>
> --
> Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be