zoukankan      html  css  js  c++  java
  • delphi idhttp 使用方法

    delphi idhttp 使用方法

    IdHTTP1.Request.Connection:='Keep-Alive';   
    IdHTTP1.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon)';   
    IdHTTP1.Request.ContentType:='application/x-www-form-urlencoded';   
    IdHTTP1.Request.Referer:='http://www.xxx.com';   
    IdHTTP1.Request.Accept:='image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/msword, */*';   
    IdHTTP1.Request.AcceptLanguage:='zh-cn';   
    IdHTTP1.Request.AcceptEncoding:='gzip, deflate';   
    IdHTTP1.Request.CacheControl:='no-cache';   
    IdHTTP1.ReadTimeout:=60000;   
    IdHTTP1.HTTPOptions:=IdHTTP1.HTTPOptions+[hoKeepOrigProtocol];//关键这行   
    IdHTTP1.ProtocolVersion:=pv1_1;   
    sHtml:=IdHTTP1.Post('http://www.xxx.com/login.asp',sPost);

  • 相关阅读:
    字符串练习
    Python基础
    熟悉常见的Linux命令
    大数据概述
    实验三 递归下降分析法
    简化C语言文法
    实验一 词法分析程序实验
    词法分析程序
    制作首页的显示列表
    完成登录功能
  • 原文地址:https://www.cnblogs.com/fengju/p/6173878.html
Copyright © 2011-2022 走看看