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

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

?? httppg1.pas

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


Author:       Fran鏾is PIETTE
Creation:     December 4, 1997
Version:      1.03
Description:  Sample program to demonstrate some of the THttpCli features.
              (POST a message to a CGI)
              (requested by Walter Daniel Leon Salas" <wdaniel@hotmail.com>)
              You can see what HttpPg does automatically using your browser
              and surfing to http://www.unired.net.pe/mensatel.html HttpPg
              does programmatically what you can do manually at this page using
              your browser.
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:
Dec 28, 1997  Added a TMemo to display the POST's result.
Jan 16, 1998  Added a Proxy edit box. Added ini file stuff.
              Better error handling. Added abort button.
Feb 10, 1999  Corrected Encode function (a test was done the wrong way).
              Thanks to Howie Hamlin <howie@hoot.com> for finding that one.


 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
unit HttpPg1;

interface

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

const
    HttpPgVersion = 101;

type
  THttpTestForm = class(TForm)
    DisplayMemo: TMemo;
    Panel1: TPanel;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    UserIDEdit: TEdit;
    EMailEdit: TEdit;
    MessageEdit: TEdit;
    SendButton: TButton;
    HttpCli1: THttpCli;
    ProxyEdit: TEdit;
    Label4: TLabel;
    AbortButton: TButton;
    procedure SendButtonClick(Sender: TObject);
    procedure FormShow(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormCreate(Sender: TObject);
    procedure AbortButtonClick(Sender: TObject);
  private
    { D閏larations priv閑s }
    FIniFileName : String;
    FInitialized : Boolean;
  public
    { D閏larations publiques }
  end;

var
  HttpTestForm: THttpTestForm;

implementation

{$R *.DFM}
const
    SectionData   = 'Data';
    KeyUserID     = 'UserID';
    KeyUserName   = 'UserName';
    KeyEMail      = 'EMail';
    KeyMessage    = 'Message';
    KeyProxy      = 'Proxy';
    SectionWindow = 'Window';
    KeyTop        = 'Top';
    KeyLeft       = 'Left';
    KeyWidth      = 'Width';
    KeyHeight     = 'Height';

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


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
{ Restore the form position and size, restore the datas for edit boxes.     }
procedure THttpTestForm.FormShow(Sender: TObject);
var
    IniFile : TIniFile;
begin
    if not FInitialized then begin
        FInitialized := TRUE;
        IniFile := TIniFile.Create(FIniFileName);
        UserIDEdit.Text  := IniFile.ReadString(SectionData, KeyUserID,
                            '27313');
        EMailEdit.Text   := IniFile.ReadString(SectionData, KeyEMail,
                            'francois.piette@pophost.eunet.be');
        ProxyEdit.Text   := IniFile.ReadString(SectionData, KeyProxy,
                            '');
        MessageEdit.Text := IniFile.ReadString(SectionData, KeyMessage,
                            'Hello World ! (Message sent by HttpPg).');

        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;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
{ Save the form position and size, save the datas for edit boxes.           }
procedure THttpTestForm.FormClose(Sender: TObject;
  var Action: TCloseAction);
var
    IniFile : TIniFile;
begin
    IniFile := TIniFile.Create(FIniFileName);
    IniFile.WriteString(SectionData, KeyUserID,    UserIDEdit.Text);
    IniFile.WriteString(SectionData, KeyProxy,     ProxyEdit.Text);
    IniFile.WriteString(SectionData, KeyMessage,   MessageEdit.Text);
    IniFile.WriteString(SectionData, KeyEMail,     EMailEdit.Text);
    IniFile.WriteInteger(SectionWindow, KeyTop,    Top);
    IniFile.WriteInteger(SectionWindow, KeyLeft,   Left);
    IniFile.WriteInteger(SectionWindow, KeyWidth,  Width);
    IniFile.WriteInteger(SectionWindow, KeyHeight, Height);
    IniFile.Free;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
{ Encode the data to be sent to the CGI                                     }
function Encode(const msg : String) : String;
var
    I : Integer;
begin
    Result := '';
    for I := 1 to Length(msg) do begin
        if msg[I] = ' ' then
            Result := Result + '+'
        else if msg[I] in ['a'..'z', 'A'..'Z', '0'..'9'] then
            Result := Result + msg[I]
        else
            Result := Result + '%' + IntToHex(ord(msg[I]), 2);
    end;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
{ Do the job !                                                              }
procedure THttpTestForm.SendButtonClick(Sender: TObject);
var
    DataIn  : TMemoryStream;
    DataOut : TMemoryStream;
    Buf     : String;
begin
    DisplayMemo.Clear;
    DataIn  := TMemoryStream.Create;  { For the response        }
    DataOut := TMemoryStream.Create;  { For the data to be sent }
    try
        { Build the data to be sent to the CGI. }
        Buf     := 'ID=' + Encode(UserIDEdit.Text) +
                   '&REMITE=' + Encode(EMailEdit.Text) +
                   '&MENSAJE=' + Encode(MessageEdit.Text);
        { Write the data to the stream which will be used to send }
        DataOut.Write(Buf[1], Length(Buf));
        { Position the stream at the beginning or nothing will be sent }
        DataOut.Seek(0, soFromBeginning);

        { Setup the HTTP component to transmit }
        httpcli1.SendStream := DataOut;
        httpcli1.RcvdStream := DataIn;
        httpcli1.Proxy      := ProxyEdit.Text;
        httpcli1.ProxyPort  := '80';
        HttpCli1.URL        := 'http://www.unired.net.pe/cgi-bin/a.out';

        SendButton.Enabled  := FALSE;
        AbortButton.Enabled := TRUE;
        try
            try
                httpcli1.Post;
                { Data sent, copy the webserver response to the DisplayMemo }
                DataIn.Seek(0, 0);
                DisplayMemo.Lines.LoadFromStream(DataIn);
            except
                { An error occured ! }
                DisplayMemo.Lines.Add('Failed : ' + HttpCli1.ReasonPhrase);
                raise
            end;
        finally
            SendButton.Enabled  := TRUE;
            AbortButton.Enabled := FALSE;
        end;
    finally
        DataOut.Free;
        DataIn.Free;
    end;
end;


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


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

end.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区免费观看| 欧美日韩精品一区二区三区蜜桃| 欧美日韩日日骚| 无吗不卡中文字幕| 日韩欧美一区电影| 国产美女主播视频一区| 中文字幕免费一区| 一本色道**综合亚洲精品蜜桃冫| 亚洲国产一区二区在线播放| 日韩欧美国产高清| 精品国产凹凸成av人导航| 菠萝蜜视频在线观看一区| 亚洲一区二区高清| 国产精品久久久一本精品| 欧美日韩国产一二三| 欧美精品日韩精品| 91亚洲精品久久久蜜桃网站 | 在线成人免费视频| 欧美精品乱码久久久久久| 91精品国产欧美日韩| 91黄色免费看| 国产99久久久精品| 蜜桃久久av一区| 亚洲综合色网站| 久久精品国产精品青草| 亚洲国产一区在线观看| 久久疯狂做爰流白浆xx| 成人美女视频在线观看18| 黄一区二区三区| 免费成人在线视频观看| 亚洲综合丁香婷婷六月香| 美女视频一区在线观看| 国产成人无遮挡在线视频| 国内精品久久久久影院一蜜桃| 岛国精品在线播放| 欧美剧情片在线观看| 国产亚洲精品aa| 久久精品亚洲精品国产欧美| 亚洲精品免费视频| 亚洲美女偷拍久久| 一区二区三区日本| 国产原创一区二区三区| 在线观看av不卡| 91精品欧美福利在线观看| 欧美日韩亚洲综合| 国产欧美日韩亚州综合| 亚洲国产成人在线| 青草国产精品久久久久久| 91同城在线观看| 久久久99久久| 久久丁香综合五月国产三级网站| 91首页免费视频| 欧美高清在线视频| 久久国产欧美日韩精品| 欧美日韩久久不卡| 亚洲精选在线视频| youjizz国产精品| 欧美午夜电影网| 日韩一区二区麻豆国产| 久久色在线视频| 国产精品久久久久aaaa樱花| 久久激情五月婷婷| 欧美大片日本大片免费观看| 亚洲一级二级三级| 欧美中文字幕一区二区三区 | 粉嫩在线一区二区三区视频| 91精品国产91久久综合桃花 | www激情久久| 美脚の诱脚舐め脚责91| 欧美群妇大交群中文字幕| 亚洲精品高清在线观看| aaa欧美大片| 国产精品国产三级国产三级人妇 | 欧美日韩亚洲另类| 亚洲一区二区三区激情| 色94色欧美sute亚洲线路一ni| 中文字幕中文字幕一区| 91视频xxxx| 一区二区三区在线免费播放 | 久久不见久久见中文字幕免费| 欧美美女一区二区在线观看| 图片区小说区区亚洲影院| 91麻豆精品国产91久久久| 日本成人在线视频网站| 色婷婷综合久久久| av亚洲精华国产精华精| 欧美老年两性高潮| 国产精品资源在线看| 国产精品一区久久久久| 久久久精品黄色| 日韩国产欧美在线观看| 欧美一区二区在线免费播放| 美日韩一区二区三区| 精品国产一区二区三区久久影院| 国产精品影视在线| 亚洲色图欧美在线| 精彩视频一区二区| 欧美日韩国产bt| 久久精品二区亚洲w码| 久久久久综合网| 欧美在线影院一区二区| 日韩影视精彩在线| 欧美日韩日日夜夜| 狠狠色狠狠色综合系列| 亚洲欧美中日韩| 国产99久久精品| 亚洲综合色在线| 国产日产欧美精品一区二区三区| 欧美午夜精品久久久久久超碰| 蜜臂av日日欢夜夜爽一区| 国产精品成人在线观看| 91精品午夜视频| 色一情一乱一乱一91av| 久久丁香综合五月国产三级网站 | 久久亚洲捆绑美女| 日本黄色一区二区| 国产精品小仙女| 午夜激情久久久| 国产精品理论在线观看| 91精品国产日韩91久久久久久| 豆国产96在线|亚洲| 奇米色777欧美一区二区| 亚洲手机成人高清视频| 久久综合色播五月| 欧美视频一二三区| 粉嫩一区二区三区在线看| 日韩影视精彩在线| 亚洲欧美日韩国产一区二区三区| 精品国产免费一区二区三区四区| 欧美在线三级电影| 97精品国产露脸对白| 亚洲精品久久嫩草网站秘色| 精品国产乱码久久久久久久久| 欧美在线视频日韩| 色综合一区二区三区| 亚洲线精品一区二区三区八戒| 久久婷婷成人综合色| 日韩午夜在线播放| 欧美日韩精品福利| 欧美制服丝袜第一页| 91麻豆精东视频| a在线播放不卡| 成人三级在线视频| 国产电影精品久久禁18| 黄网站免费久久| 国产一区久久久| 国产成人av网站| 高清shemale亚洲人妖| 国产一区二区不卡老阿姨| 麻豆国产欧美日韩综合精品二区| 日本美女视频一区二区| 爽爽淫人综合网网站| 日精品一区二区三区| 日韩av不卡一区二区| 日韩主播视频在线| 蜜臀久久99精品久久久画质超高清| 婷婷综合久久一区二区三区| 亚洲大片在线观看| 国产精品第一页第二页第三页| 欧美激情艳妇裸体舞| 亚洲婷婷综合久久一本伊一区| 亚洲视频免费观看| 亚洲综合在线五月| 亚洲bt欧美bt精品| 久久国产夜色精品鲁鲁99| 国产精品乡下勾搭老头1| a级精品国产片在线观看| 91看片淫黄大片一级| 在线国产亚洲欧美| 日韩一区二区三区在线视频| 久久综合精品国产一区二区三区| 欧美经典一区二区| 亚洲男人的天堂网| 日韩黄色免费网站| 黑人巨大精品欧美黑白配亚洲| 成人午夜视频在线| 欧美午夜在线观看| 欧美草草影院在线视频| 欧美裸体一区二区三区| 日韩精品资源二区在线| 久久精品亚洲精品国产欧美| 亚洲男人的天堂在线aⅴ视频| 天天操天天干天天综合网| 国产一区二区91| 欧美人动与zoxxxx乱| 久久午夜免费电影| 亚洲一卡二卡三卡四卡| 国产在线日韩欧美| 在线观看日韩电影| 久久久影视传媒| 五月天欧美精品| 成人午夜免费视频| 日韩欧美激情一区| 一区二区三区中文在线观看| 黄色资源网久久资源365| 色999日韩国产欧美一区二区| 欧美精品一区二区三区在线| 夜夜嗨av一区二区三区中文字幕| 国产精品影视网| 日韩女优制服丝袜电影|