[fpc-pascal] Premature end of headers using fcl-web and POST
Ludo Brands
ludo.brands at free.fr
Tue Nov 1 09:04:42 CET 2011
> >> 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.
>
Note the "per the HTML specs". HTTP specs aren't that strict.
> HTTP per se should pose no
> restrictions to what I am sending via POST.
>
It doesn't. Application/octet-stream is a common MIME used to send binary
data.
Ludo
More information about the fpc-pascal
mailing list