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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? httpget1.pas

?? 包含常用Internet協(xié)議TCP,UDP、HTTP、FTP、Telnet等
?? PAS
字號:
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Author:       Fran鏾is PIETTE
Creation:     January 17, 1998
Version:      1.00
Description:  This sample program show how to get a document from a webserver
              s store it to a file. Also display some progress info.
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.

Updates:

 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
unit HttpGet1;

interface

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

type
  THttpGetForm = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    URLEdit: TEdit;
    ProxyHostEdit: TEdit;
    ProxyPortEdit: TEdit;
    FileNameEdit: TEdit;
    Label5: TLabel;
    GetButton: TButton;
    AbortButton: TButton;
    InfoLabel: TLabel;
    HttpCli1: THttpCli;
    procedure GetButtonClick(Sender: TObject);
    procedure FormShow(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormCreate(Sender: TObject);
    procedure HttpCli1DocData(Sender: TObject; Buffer: Pointer;
      Len: Integer);
    procedure HttpCli1HeaderData(Sender: TObject);
    procedure AbortButtonClick(Sender: TObject);
  private
    { D閏larations priv閑s }
    FInitialized : Boolean;
    FIniFileName : String;
  public
    { D閏larations publiques }
  end;

var
  HttpGetForm: THttpGetForm;

implementation

{$R *.DFM}
const
    SectionData   = 'Data';
    KeyURL        = 'URL';
    KeyProxyHost  = 'ProxyHost';
    KeyProxyPort  = 'ProxyPort';
    KeyFileName   = 'FileName';
    SectionWindow = 'Window';
    KeyTop        = 'Top';
    KeyLeft       = 'Left';
    KeyWidth      = 'Width';
    KeyHeight     = 'Height';


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure THttpGetForm.FormCreate(Sender: TObject);
begin
    FIniFileName := LowerCase(ExtractFileName(Application.ExeName));
    FIniFileName := Copy(FIniFileName, 1, Length(FIniFileName) - 3) + 'ini';
    InfoLabel.Caption := '';
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure THttpGetForm.FormShow(Sender: TObject);
var
    IniFile : TIniFile;
begin
    if not FInitialized then begin
        FInitialized       := TRUE;
        IniFile            := TIniFile.Create(FIniFileName);
        URLEdit.Text       := IniFile.ReadString(SectionData, KeyURL,
                              'http://www.rtfm.be/fpiette/images/overbyte.gif');
        ProxyHostEdit.Text := IniFile.ReadString(SectionData, KeyProxyHost,
                              '');
        ProxyPortEdit.Text := IniFile.ReadString(SectionData, KeyProxyPort,
                              '80');
        FileNameEdit.Text  := IniFile.ReadString(SectionData, KeyFileName,
                              'test.tmp');
        Top    := IniFile.ReadInteger(SectionWindow, KeyTop,    Top);
        Left   := IniFile.ReadInteger(SectionWindow, KeyLeft,   Left);
        Width  := IniFile.ReadInteger(SectionWindow, KeyWidth,  Width);
        Height := IniFile.ReadInteger(SectionWindow, KeyHeight, Height);
        IniFile.Free;
    end;
end;


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


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure THttpGetForm.GetButtonClick(Sender: TObject);
begin
    HttpCli1.URL        := URLEdit.Text;
    HttpCli1.Proxy      := ProxyHostEdit.Text;
    HttpCli1.ProxyPort  := ProxyPortEdit.Text;
    HttpCli1.RcvdStream := TFileStream.Create(FileNameEdit.Text, fmCreate);
    GetButton.Enabled   := FALSE;
    AbortButton.Enabled := TRUE;
    InfoLabel.Caption   := 'Loading';
    try
        try
            HttpCli1.Get;
            InfoLabel.Caption := 'Received ' +
                                 IntToStr(HttpCli1.RcvdStream.Size) + ' bytes';
        except
            on E: EHttpException do begin
                InfoLabel.Caption := 'Failed : ' +
                                     IntToStr(HttpCli1.StatusCode) + ' ' +
                                     HttpCli1.ReasonPhrase;;
            end
            else
                raise;
        end;
    finally
        GetButton.Enabled   := TRUE;
        AbortButton.Enabled := FALSE;
        HttpCli1.RcvdStream.Destroy;
        HttpCli1.RcvdStream := nil;
    end;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure THttpGetForm.HttpCli1DocData(Sender: TObject; Buffer: Pointer;
  Len: Integer);
begin
    InfoLabel.Caption := IntToStr(HttpCli1.RcvdCount);
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure THttpGetForm.HttpCli1HeaderData(Sender: TObject);
begin
    InfoLabel.Caption := InfoLabel.Caption + '.';
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure THttpGetForm.AbortButtonClick(Sender: TObject);
begin
    HttpCli1.Abort;
end;


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

end.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久不卡网国产精品二区| 国产91在线|亚洲| 亚洲国产成人tv| 日韩在线观看一区二区| 国产成人精品免费看| 日本韩国一区二区三区| 日韩精品一区二区三区在线| 国产精品午夜久久| 日韩国产精品91| 97久久精品人人澡人人爽| 8x福利精品第一导航| 国产精品色婷婷| 99久久99久久综合| 一个色在线综合| 成人黄色综合网站| 精品欧美久久久| 午夜久久久久久电影| 色噜噜狠狠一区二区三区果冻| 亚洲综合一区在线| 91农村精品一区二区在线| 久久久精品免费网站| 99久久伊人精品| 亚洲国产经典视频| 久久99久久99小草精品免视看| 日本韩国欧美国产| 捆绑调教美女网站视频一区| 3d成人动漫网站| 国产+成+人+亚洲欧洲自线| 亚洲激情五月婷婷| 在线视频一区二区三| 18欧美亚洲精品| 成人avav影音| 日本sm残虐另类| 精品日本一线二线三线不卡| 成人精品国产一区二区4080| 丝袜亚洲另类丝袜在线| 日本一区二区三区免费乱视频| 国产成人精品一区二区三区四区| 1区2区3区欧美| 久久久九九九九| 在线播放91灌醉迷j高跟美女 | 偷拍与自拍一区| 国产欧美精品一区| 日韩精品专区在线影院重磅| www.亚洲人| 国产乱码精品一品二品| 久久久精品免费观看| 欧美自拍丝袜亚洲| 波多野结衣在线aⅴ中文字幕不卡| 天堂成人免费av电影一区| 中文字幕一区二区三| 久久久久久久久99精品| 制服.丝袜.亚洲.中文.综合| 色美美综合视频| av激情亚洲男人天堂| 国产精品一级片| 另类小说图片综合网| 午夜激情一区二区| 亚洲欧美一区二区三区孕妇| 欧美少妇一区二区| 裸体一区二区三区| 久久久精品黄色| 欧美大片拔萝卜| 欧美一二三四区在线| 国产大陆亚洲精品国产| 久久电影网站中文字幕| 日日骚欧美日韩| 亚洲免费av高清| 亚洲视频资源在线| 欧美成人aa大片| 91精品在线观看入口| 欧美日韩精品免费| 国产精品亚洲视频| 国产综合一区二区| 亚洲在线一区二区三区| 亚洲欧美日韩久久| 亚洲综合一区在线| 亚洲成a人v欧美综合天堂| 欧美韩国日本不卡| 欧美国产国产综合| 综合婷婷亚洲小说| 一区二区三区中文字幕在线观看| 中文字幕亚洲不卡| 亚洲精品亚洲人成人网在线播放| 一区二区三区四区激情| 亚洲一区在线观看免费观看电影高清| 日韩毛片精品高清免费| 亚洲一二三区视频在线观看| 亚洲综合在线电影| 天堂久久一区二区三区| 玖玖九九国产精品| 国产精品夜夜嗨| 91丨九色丨蝌蚪富婆spa| 日本道免费精品一区二区三区| 欧美午夜精品免费| 日韩欧美精品在线| 国产三级欧美三级日产三级99| 欧美美女激情18p| 欧美一区二区三区思思人| 色婷婷av一区二区三区大白胸| 久久精品国内一区二区三区| 国产美女一区二区| 国产在线精品一区二区三区不卡| 国产·精品毛片| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 国产精品一区在线观看你懂的| 成人在线综合网| 国产成人丝袜美腿| 色伊人久久综合中文字幕| 欧美一级片免费看| 国产精品日日摸夜夜摸av| 亚洲国产日韩一级| 国内久久婷婷综合| 91官网在线观看| 精品福利一区二区三区免费视频| 91精品国产入口| 欧美国产日韩a欧美在线观看| 亚洲精品免费在线播放| 热久久久久久久| 波多野结衣91| 日韩免费看的电影| 亚洲日本一区二区| 九色|91porny| 色婷婷激情综合| 国产欧美精品一区aⅴ影院| 亚洲国产精品久久久男人的天堂| 久久www免费人成看片高清| 99精品视频一区| 精品国产91久久久久久久妲己| 亚洲一二三四在线| 丁香一区二区三区| 69久久夜色精品国产69蝌蚪网| 国产精品久久三区| 亚洲免费av网站| 国产精品中文欧美| 91精选在线观看| 亚洲女人****多毛耸耸8| 韩国一区二区在线观看| 欧美三级电影一区| 国产精品国产成人国产三级| 久久福利视频一区二区| 欧美人妖巨大在线| 亚洲特级片在线| 成人一区在线观看| 欧美tickling网站挠脚心| 日韩精品成人一区二区在线| 欧美中文一区二区三区| 中文字幕中文在线不卡住| 国产98色在线|日韩| 久久久一区二区| 久久成人久久爱| 日韩一级片在线播放| 午夜精品一区在线观看| 欧美性色黄大片| 最新成人av在线| 99久久夜色精品国产网站| 国产精品久久久久久亚洲伦| 国产成人av自拍| 久久精品视频免费观看| 韩国视频一区二区| 欧美成人r级一区二区三区| 麻豆一区二区在线| 日韩欧美在线观看一区二区三区| 婷婷综合在线观看| 在线观看91av| 免费久久精品视频| 91精品国产综合久久精品| 蜜桃传媒麻豆第一区在线观看| 91精品国产一区二区人妖| 老司机免费视频一区二区| 精品对白一区国产伦| 激情丁香综合五月| 久久精品欧美一区二区三区麻豆| 韩国v欧美v亚洲v日本v| 久久久高清一区二区三区| 成人黄色av电影| 亚洲乱码中文字幕| 欧美精品第1页| 精品一区二区三区在线观看| 精品国产乱码久久久久久浪潮| 激情综合色综合久久综合| 久久精品人人爽人人爽| 成人aa视频在线观看| 亚洲靠逼com| 91精品国产综合久久久久久久| 午夜久久久久久久久| 欧美成人aa大片| 成人视屏免费看| 亚洲综合一二三区| 3atv在线一区二区三区| 国产精品中文字幕日韩精品| 国产精品久久夜| 在线播放中文一区| 国产精品一线二线三线精华| ...中文天堂在线一区| 欧美日韩一区二区三区在线| 麻豆91小视频| 亚洲精品中文在线影院| 日韩欧美激情在线| 99国产精品久久久久久久久久|