亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? httptst1.pas

?? 包含常用Internet協議TCP,UDP、HTTP、FTP、Telnet等
?? PAS
?? 第 1 頁 / 共 2 頁
字號:
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Author:       Fran鏾is PIETTE
Creation:     November 23, 1997
Version:      1.04
Description:  Sample program to demonstrate some of the THttpCli features.
EMail:        francois.piette@pophost.eunet.be    
              francois.piette@rtfm.be             http://www.rtfm.be/fpiette
Support:      Use the mailing list twsocket@rtfm.be See website for details.
Legal issues: Copyright (C) 1997, 1998 by Fran鏾is PIETTE
              Rue de Grady 24, 4053 Embourg, Belgium. Fax: +32-4-365.74.56
              <francois.piette@pophost.eunet.be>

              This software is provided 'as-is', without any express or
              implied warranty.  In no event will the author be held liable
              for any  damages arising from the use of this software.

              Permission is granted to anyone to use this software for any
              purpose, including commercial applications, and to alter it
              and redistribute it freely, subject to the following
              restrictions:

              1. The origin of this software must not be misrepresented,
                 you must not claim that you wrote the original software.
                 If you use this software in a product, an acknowledgment
                 in the product documentation would be appreciated but is
                 not required.

              2. Altered source versions must be plainly marked as such, and
                 must not be misrepresented as being the original software.

              3. This notice may not be removed or altered from any source
                 distribution.

              4. You must register this software by sending a picture postcard
                 to the author. Use a nice stamp and mention your name, street
                 address, EMail address and any comment you like to say.

Updates:
Jan 16, 1998  V1.00 Adapted for reviced HTTP component.
Apr 13, 1998  V1.01 Call HttpCli1DocEnd when to request failed, to close the
              document file in the case it is already opened.
Jul 09, 1998  V1.02 Adapted for Delphi 4
Sep 15, 1998  V1.03 Added some code to check for file creation errors (those
              errors mostly comes from document names not suitable as file
              names).
              Added code to save form size and position and to resize it
              correctly.
Sep 25, 1999  V1.04 Added display proxy setting


 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
unit httptst1;

interface

uses
  WinTypes, WinProcs, Messages, SysUtils, Classes, Graphics, Controls, Forms,
  Dialogs, HttpProt, WSocket, StdCtrls, ExtCtrls, IniFiles;

const
  HttpTstVersion = 103;

type
  THttpTestForm = class(TForm)
    Panel1: TPanel;
    GetButton: TButton;
    HttpCli1: THttpCli;
    URLEdit: TEdit;
    DisplayMemo: TMemo;
    Label1: TLabel;
    Label2: TLabel;
    ProxyHostEdit: TEdit;
    ProxyPortEdit: TEdit;
    PostButton: TButton;
    Check64Button: TButton;
    DataEdit: TEdit;
    Label3: TLabel;
    DateTimeEdit: TEdit;
    DocumentMemo: TMemo;
    Label4: TLabel;
    HeadButton: TButton;
    AbortButton: TButton;
    Label5: TLabel;
    Label6: TLabel;
    ParseButton: TButton;
    procedure GetButtonClick(Sender: TObject);
    procedure HttpCli1Command(Sender: TObject; var s: String);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormShow(Sender: TObject);
    procedure HttpCli1DocBegin(Sender: TObject);
    procedure HttpCli1DocEnd(Sender: TObject);
    procedure PostButtonClick(Sender: TObject);
    procedure Check64ButtonClick(Sender: TObject);
    procedure HeadButtonClick(Sender: TObject);
    procedure HttpCli1RequestDone(Sender: TObject; RqType: THttpRequest;
      Error: Word);
    procedure AbortButtonClick(Sender: TObject);
    procedure Panel1Resize(Sender: TObject);
    procedure ParseButtonClick(Sender: TObject);
  private
    { D閏larations priv閑s }
    Initialized : Boolean;
    DocFileName : String;
    procedure SetButtonState(State : Boolean);
  public
    { D閏larations publiques }
  end;

var
  HttpTestForm: THttpTestForm;

implementation

{$R *.DFM}

const
    IniFileName    = 'httptest';
    SectionWindow  = 'WindowMain';
    KeyTop         = 'Top';
    KeyLeft        = 'Left';
    KeyWidth       = 'Width';
    KeyHeight      = 'Height';
    SectionData    = 'Data';
    KeyUrl         = 'URL';
    KeyProxyHost   = 'ProxyHost';
    KeyProxyPort   = 'ProxyPort';
    KeyData        = 'Data';
    KeyDateTime    = 'DateTime';

{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure THttpTestForm.FormShow(Sender: TObject);
var
    IniFile : TIniFile;
begin
    if not Initialized then begin
        Initialized  := TRUE;
        IniFile      := TIniFile.Create(IniFileName);
        Width        := IniFile.ReadInteger(SectionWindow, KeyWidth,  Width);
        Height       := IniFile.ReadInteger(SectionWindow, KeyHeight, Height);
        Top          := IniFile.ReadInteger(SectionWindow, KeyTop,
                                            (Screen.Height - Height) div 2);
        Left         := IniFile.ReadInteger(SectionWindow, KeyLeft,
                                            (Screen.Width  - Width)  div 2);
        URLEdit.Text       := IniFile.ReadString(SectionData, KeyURL,       '');
        ProxyHostEdit.Text := IniFile.ReadString(SectionData, KeyProxyHost, '');
        ProxyPortEdit.Text := IniFile.ReadString(SectionData, KeyProxyPort, '80');
        DataEdit.Text      := IniFile.ReadString(SectionData, KeyData,      '');
        DateTimeEdit.Text  := IniFile.ReadString(SectionData, KeyDateTime,  '');
        IniFile.Free;
    end;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure THttpTestForm.FormClose(Sender: TObject;
  var Action: TCloseAction);
var
    IniFile : TIniFile;
begin
    IniFile := TIniFile.Create(IniFileName);
    IniFile.WriteInteger(SectionWindow, KeyTop,       Top);
    IniFile.WriteInteger(SectionWindow, KeyLeft,      Left);
    IniFile.WriteInteger(SectionWindow, KeyWidth,     Width);
    IniFile.WriteInteger(SectionWindow, KeyHeight,    Height);
    IniFile.WriteString(SectionData,    KeyURL,       URLEdit.Text);
    IniFile.WriteString(SectionData,    KeyProxyHost, ProxyHostEdit.Text);
    IniFile.WriteString(SectionData,    KeyProxyPort, ProxyPortEdit.Text);
    IniFile.WriteString(SectionData,    KeyData,      DataEdit.Text);
    IniFile.WriteString(SectionData,    KeyDateTime,  DateTimeEdit.Text);
    IniFile.Free;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure THttpTestForm.HeadButtonClick(Sender: TObject);
var
    I       : Integer;
begin
    DisplayMemo.Clear;
    DocumentMemo.Clear;
    SetButtonState(FALSE);

    try
        httpcli1.URL        := URLEdit.Text;
        httpcli1.Proxy      := ProxyHostEdit.Text;
        httpcli1.ProxyPort  := ProxyPortEdit.Text;
        httpcli1.RcvdStream := nil;
        if DateTimeEdit.Text <> '' then
            httpcli1.ModifiedSince := StrToDateTime(DateTimeEdit.Text)
        else
            httpcli1.ModifiedSince := 0;

        if httpcli1.Proxy <> '' then
            DisplayMemo.Lines.Add('Using proxy ''' + httpcli1.Proxy + ':' +
                                  httpcli1.ProxyPort + '''')
        else
            DisplayMemo.Lines.Add('Not using proxy');

        try
            httpcli1.Head;
        except
            DisplayMemo.Lines.Add('HEAD Failed !');
            DisplayMemo.Lines.Add('StatusCode   = ' + IntToStr(httpcli1.StatusCode));
            DisplayMemo.Lines.Add('ReasonPhrase = ' + httpcli1.ReasonPhrase);
            Exit;
        end;

        DisplayMemo.Lines.Add('StatusCode = ' + IntToStr(httpcli1.StatusCode));

        for I := 0 to httpcli1.RcvdHeader.Count - 1 do
            DisplayMemo.Lines.Add('hdr>' + httpcli1.RcvdHeader.Strings[I]);
    finally
        SetButtonState(TRUE);
    end;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美综合在线| av在线不卡电影| 亚洲大型综合色站| 亚洲欧美国产77777| 国产精品美女久久久久久久 | 国产精品欧美久久久久无广告| 丝袜诱惑亚洲看片| 亚洲一区二区三区激情| 亚洲图片欧美一区| 香蕉乱码成人久久天堂爱免费| 欧美日韩视频不卡| 欧美男生操女生| 亚洲精品在线网站| 国产欧美日韩在线视频| 亚洲视频网在线直播| 亚洲一二三区在线观看| 五月综合激情网| 国产一区二区在线看| 国产.精品.日韩.另类.中文.在线.播放| 亚洲国产精品激情在线观看| 久久久美女毛片| 国产精品高潮呻吟| 亚洲综合免费观看高清在线观看| 久久人人超碰精品| 中文字幕一区二区三区在线观看 | 国产精品久久免费看| 国产精品你懂的| 亚洲国产一区二区在线播放| 日韩成人av影视| 粉嫩av一区二区三区粉嫩| 91麻豆福利精品推荐| 91精品国产丝袜白色高跟鞋| 久久久久久一二三区| 亚洲综合男人的天堂| 国产成人在线视频免费播放| 欧美在线观看禁18| 国产免费久久精品| 日本不卡高清视频| 99久久精品国产一区| 精品欧美一区二区在线观看| 亚洲欧美激情在线| 狠狠色丁香婷婷综合久久片| 欧洲精品一区二区| 国产亚洲精品bt天堂精选| 亚洲国产人成综合网站| 岛国av在线一区| 欧美一级日韩不卡播放免费| 一区二区高清视频在线观看| 国内精品国产成人| 欧美日韩一区久久| 中文字幕在线不卡视频| 久久精品国产亚洲5555| 欧美视频在线播放| 亚洲人成亚洲人成在线观看图片| 国产精品毛片高清在线完整版| 久久综合狠狠综合久久综合88| 欧美疯狂性受xxxxx喷水图片| 色噜噜狠狠一区二区三区果冻| av电影在线观看完整版一区二区| 国产91精品一区二区麻豆亚洲| 激情久久五月天| 6080国产精品一区二区| 亚洲视频在线一区观看| 成人免费毛片aaaaa**| 精品国产99国产精品| 日韩成人av影视| 欧美日韩电影一区| 午夜精品久久久久久久久久久| 麻豆成人综合网| 3d动漫精品啪啪一区二区竹菊| 91精品在线观看入口| 亚洲欧美另类在线| 91蝌蚪porny| 亚洲人被黑人高潮完整版| 成人在线综合网站| 1024国产精品| 色婷婷精品大视频在线蜜桃视频| 在线播放一区二区三区| 午夜激情一区二区| 欧美一区二区视频在线观看2022| 欧美mv日韩mv国产网站| 久久精品国产一区二区三区免费看| 极品少妇一区二区| 久久久www免费人成精品| 国产精品一线二线三线| 国产日韩欧美激情| 日本精品一区二区三区高清| 亚洲一卡二卡三卡四卡五卡| 欧美色综合影院| 青草av.久久免费一区| 精品免费视频.| 国产米奇在线777精品观看| 国产视频在线观看一区二区三区 | 亚洲地区一二三色| 欧美日韩国产经典色站一区二区三区| 日韩美女天天操| 国产精品一区二区视频| 国产精品久久777777| 欧美亚洲丝袜传媒另类| 青青草国产精品亚洲专区无| 日韩一卡二卡三卡| 国产69精品久久777的优势| 最新热久久免费视频| 在线观看91av| 国产精品一品视频| 亚洲福利视频导航| 久久伊人中文字幕| 色婷婷综合久久久| 久久国产乱子精品免费女| 国产蜜臀av在线一区二区三区| 久久国产精品无码网站| 国产精品国产三级国产普通话三级| 久久aⅴ国产欧美74aaa| 一区免费观看视频| 欧美一级理论片| 成人在线综合网站| 日韩和欧美一区二区| 国产精品久久网站| 欧美一区二区免费观在线| 99久久精品99国产精品| 久久激情综合网| 亚洲精选在线视频| 国产日韩高清在线| 日韩一区二区在线看| 色综合久久88色综合天天| 久久精品国产亚洲一区二区三区| 日韩一区二区三区在线| 91免费观看在线| 国产伦精品一区二区三区在线观看| 日韩一区二区高清| 欧洲一区在线电影| 成人黄色a**站在线观看| 精品一区二区日韩| 丝袜美腿成人在线| 18成人在线视频| 中文一区一区三区高中清不卡| 成人国产在线观看| 裸体一区二区三区| 亚洲综合色区另类av| 亚洲精品国产成人久久av盗摄| 在线中文字幕一区| 99精品热视频| 91小视频在线免费看| 成人免费高清视频在线观看| 国产精品99久久久久久久女警| 久久久www成人免费毛片麻豆| 国产在线视频精品一区| 久久精品国产99| 久久不见久久见免费视频7| 亚洲午夜私人影院| 亚洲大片一区二区三区| 亚洲午夜影视影院在线观看| 亚洲一区二区三区中文字幕| 亚洲伊人色欲综合网| 亚洲免费电影在线| 亚洲成人免费在线观看| 亚洲大型综合色站| 日本中文一区二区三区| 日本在线观看不卡视频| 精品一区二区三区av| 国产制服丝袜一区| 国产黄色精品网站| 白白色亚洲国产精品| 91免费视频网址| 欧美性色综合网| 欧美一区二区三区在线看| 日韩一区二区在线播放| 国产亚洲美州欧州综合国| 国产精品久久99| 亚洲一区二区综合| 日本午夜精品一区二区三区电影 | 色综合中文字幕国产| 成人黄页毛片网站| 欧美在线观看视频一区二区三区| 精品在线播放免费| 久久66热re国产| 成人性视频免费网站| 一本到一区二区三区| 欧美日本一区二区在线观看| 欧美成人a视频| 国产精品进线69影院| 午夜精品免费在线| 国产福利精品一区| 日本高清成人免费播放| 日韩欧美专区在线| 国产精品人成在线观看免费| 亚洲va韩国va欧美va精品| 国产一区二区精品久久| 色www精品视频在线观看| 欧美一区二区三区四区高清| 欧美国产激情二区三区| 日韩av网站免费在线| 成人va在线观看| 欧美一区二区黄| 亚洲日本一区二区| 精品一二三四区| 欧美性生活一区| 中文字幕欧美激情一区| 青青草97国产精品免费观看无弹窗版| 亚洲午夜三级在线|