This shows you the differences between two versions of the page.
public:howto:htmlforms [2012/01/27 11:55] rasc |
public:howto:htmlforms [2012/01/27 11:56] (current) rasc formatting corrected, boundary MUST be separated by semicolon |
||
---|---|---|---|
Line 13: | Line 13: | ||
const | const | ||
FIELD_MASK = CRLF + '--%s' + CRLF + | FIELD_MASK = CRLF + '--%s' + CRLF + | ||
- | 'Content-Disposition: form-data; name="%s"' + CRLF + CRLF | + | 'Content-Disposition: form-data; name="%s"' + CRLF + CRLF+ |
- | + | + | |
'%s'; | '%s'; | ||
begin | begin | ||
Line 21: | Line 20: | ||
try | try | ||
s := '--' + Bound + CRLF; | s := '--' + Bound + CRLF; | ||
- | s := s + 'content-disposition: form-data; name="' + FieldName + | + | s := s + 'content-disposition: form-data; name="' + FieldName + '";'; |
- | '";'; | + | |
s := s + ' filename="' + FileName +'"' + CRLF; | s := s + ' filename="' + FileName +'"' + CRLF; | ||
s := s + 'Content-Type: Application/octet-string' + CRLF + CRLF; | s := s + 'Content-Type: Application/octet-string' + CRLF + CRLF; |