04-04-2019, 01:54 AM
(04-03-2019, 10:53 PM)Jose Nilton Pace Wrote: Pete, when you create your contentHandle check Canstart and RequiresSession:
with THandlers.Add('/nfse/', '', TContentAPI_NFSe.Create ) do begin
CanStartSession := True;
RequiresSessionStart := False;
end;
Hi Jose,
Thanks for answering. (again - you're on a streak today!)
I had RequiresSessionStart := true, but either way it doesn't work.
It can access my session and all the forms and everything. It prepares the entire page properly. Every line of code that it should hit, gets hit when I make the request. But at the very end, it doesn't render that code to the response.
In THTTPServerIndy.DecodeReply(), the replyType returns rtNone. But even if I force that to something else, there is no content in the stream to render.
Pete

