易截截图软件、单文件、免安装、纯绿色、仅160KB

is not a valid integer value delphi问题

我尝试一个 idhttp 访问网站链接的程序
在设置代理端口的时候出错
编译没有错误
就是在运行的时候 出现了
80 is not a valid integer value 的问题
我已经把 函数分类出来的 port 转换为 integer 了 为什么还出错呢
下面是 主要的代码


procedure TForm1.Button1Click(Sender: TObject);//idgttp get 链接地址
var
HTTP: TidHTTP;
html, s: string;
i: integer;
begin
timer3.Enabled:=false;
HTTP := TidHTTP.Create(nil);
try
http.ReadTimeout:=3000;
http.Request.Accept := 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*';
http.Request.AcceptLanguage := 'zh-cn';
http.Request.ContentType := 'application/x-www-form-urlencoded';
http.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 1.1.4322)';
HTTP.HandleRedirects := True;
HTTP.AllowCookies := True;
http.Request.Referer:=edit3.Text; //来路设置
http.ProxyParams.ProxyServer:= edit7.Text; //代理IP
http.ProxyParams.ProxyPort:=strtoint(edit8.Text);  //代理端口  这一句对不对???
HTTP.Request.CustomHeaders.Values['Cookie'] := 'abcd';//修改Cookie 抓包可见
html := HTTP.Get(edit5.Text);
s := 'Cookies: ';
if HTTP.CookieManager.CookieCollection.Count > 0 then
for i := 0 to HTTP.CookieManager.Co


相关问答:

delphi中excel导入sql server的问题。

'Select * into mytable from OpenDataSource(''Microsoft.JET.OLEDB.4.0'',''Data Source=f:\test.xls;Mode=Read;Extended Properties=Excel 5.0;Persist Security Info=False' ......

Delphi与SQL的文件存取问题

请问:
1、如何在Delphi中,把指定文件保存到SQL中,SQL对应字段又应该用什么类型才比较合适?
2、对于1操作,如何把保存到SQL中的文件打开?
3、以上文件主要针对Office(DOC、XLS等)文件类型,图片(BMP ......

请教delphi中使用access数据库进行数据导入的问题

向各位高手求助。
我用delphi2009编写了一个管理系统,使用的是access数据库。现在想通过多人一起录入数据后,将数据导出,导出的数据库包含多个相同的表。再将导出的数据依次导入到同一个数据库的相同表中,导入 ......

delphi导入excel到sqlserver的sql语句问题

'Select * into '+TempTableName+' from OpenDataSource(''Microsoft.JET.OLEDB.4.0'',''Data Source='
  +ExcelFilePath+';Mode=Read;Extended Properties=Ex ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号