Hi,
can you check ODataServer (Delphi).zip sample and related http commands from this post?
ODataServer (Delphi).zip