mormot取multipart分界符
mormot取multipart分界符
function getBoundary(const inContentType: RawUTF8): RawUTF8; //multipart 分界符 var boundary: RawUTF8; i,j: integer; P: PUTF8Char; part: TMultiPart; begin Result := ''; i := PosEx('boundary=',inContentType); if i=0 then exit; TrimCopy(inContentType,i+9,200,boundary); if (boundary<>'') and (boundary[1]='"') then boundary := copy(boundary,2,length(boundary)-2); // "boundary" -> boundary Result := boundary; end;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/p/14296397.html