On Mon, Oct 31, 2011 at 7:30 PM, Michael Van Canneyt
<mich...@freepascal.org> wrote:
>> So it seems that you MUST set the contenttype either to
>> MULTIPART/FORM-DATA or APPLICATION/X-WWW-FORM-URLENCODED.
>
> Yes, this is as per the HTML specs.

They actually prohibit sending arbitrary data? oh, boy, these people
like rules and inneficiency =D But there must be something missing
here, because file upload is possible, and there you send arbitrary
data.

And also it seams pretty safe to ignore such restriction, only fcl-web
blocked me here. I doubt that the browser will try to syntax check my
data to see if it is XML and block me.

> This can of course be done, the question is what this handler should do ?

You mean the user application? Whatever it wants? Receiving a
TStringList or a TStream I can just process it. It expects a
particular format and reacts to it, or gives an error if the format is
worng. I already have a data structure ready which I adapted, but
using GET is rather inneficient, you have to encode it, so I thought
that I should just pass to POST to be able to send more arbitrary
data. HTTP per se should pose no restrictions to what I am sending via
POST.

-- 
Felipe Monteiro de Carvalho
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to