张志峰的博客

水滴石川,积少成多。

导航

随笔分类 -  Delphi TIdHTTP

摘要:从国外网站抄来的代码Delphi source:http := TIdHttp.Create(nil);http.HandleRedirects := True;//允许头转向http.ReadTimeout := 5000;//请求超时设置http.Request.ContentType := '... 阅读全文

posted @ 2015-03-24 16:54 ╰★张志峰★╮ 阅读(1251) 评论(0) 推荐(0)

摘要:Delphi7下实现HTTP的Post操作unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, StdCtrls, Buttons, OverbyteIcsWndControl, OverbyteIcsHttpProt;type TForm1 = class(TForm) btn1: ... 阅读全文

posted @ 2013-10-31 14:25 ╰★张志峰★╮ 阅读(3617) 评论(0) 推荐(0)

摘要:http控件能不能实现post文件?要求效果就像普通的html中通过表单(form中))发送文件一样.我试过用post字符串好像没问题。。但是要实现这种方式没头绪换一种说法就是用delphi的http控件提交包含文件的表单。。服务器端用普通的文件上载控件像接受html页面中的form提交一样来接受上载的文件。http://www.matlus.com/scripts/website.dll/Tutorials?DelphiTCPIP&IndyMultiPartFormData&5gz!!!把上面的研究一下,hehe.对不起,很长时间没回贴也没结贴其实很简单:就是利用idhttp 阅读全文

posted @ 2013-10-31 13:31 ╰★张志峰★╮ 阅读(825) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/panjunbiao/article/details/8615880 用Delphi的TIdHttp控件发起POST请求和Java的Servlet响应 阅读全文

posted @ 2013-10-31 13:19 ╰★张志峰★╮ 阅读(533) 评论(0) 推荐(0)