使用Delphi XE和Indy,我得到了一些提交到Web表单的代码. idhttp := TidHttp.create;postData := TIdMultiPartFormDataStream.Create;try postData.AddFormField('name', edName.text); postData.AddFormField('email', edEmail.txt); postDa
idhttp := TidHttp.create; postData := TIdMultiPartFormDataStream.Create; try postData.AddFormField('name', edName.text); postData.AddFormField('email', edEmail.txt); postData.AddFormField('description', mDescription.text); idhttp.Request.ContentType := 'Content-Type: multipart/form-data; boundary=' + postData.Boundary; idhttp.fHttp.Post('http://www.example.com/contact.php', postData); ShowMessage('Thank you for your contact us.'); finally postData.Free; idHttp.Free; end;
但是,当我在描述备忘录中输入类似的内容时.
This is a really long descriptie piece of text so we can see just how it's wrapping these lines and what it's doig to them I think it's making a hash of it. Argh waht a pain.
我明白了
This is a really long descriptie piece of text so we can see just how = it's wrapping these lines and what it's doig to them I think it's maki= ng a hash of it. Argh waht a pain.
所以对我来说似乎是自动换行,=
有线索的人吗?
您可以将ContentTransfer属性更改为以下任何受支持的值:
>一个空白字符串
> 7bit
> 8位
>二进制
>引用可打印
> base64
如果您不希望对文本进行编码,请将ContentTransfer属性设置为quoted-printable或base64以外的任何值.