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
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal