[fpc-pascal] Premature end of headers using fcl-web and POST
Sven Barth
pascaldragon at googlemail.com
Mon Oct 31 19:36:58 CET 2011
On 31.10.2011 19:30, Michael Van Canneyt wrote:
>> Maybe TRequest should be extended by something like an "unknown
>> content type handler"...
>
> This can of course be done, the question is what this handler should do ?
Handler gets ContentType, transmitted data (the TMemoryStream) and the
ContentFields field as arguments and processes them accordingly.
This is the theory. In practice this of course can be a problem if the
transmitted data is e.g. binary data, a XML or something else that can't
be stuffed in a TStrings... But on the other hand the handler could at
least do something else with that data (e.g. put it into a field in the
class the handler belongs to).
Regards,
Sven
More information about the fpc-pascal
mailing list