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

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

?? httppg1.pas

?? 文件名稱:新曦 我的資源 搜索軟件 源程序(Borland Delphi 7)說明
?? 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一区二区三区免费野_久草精品视频
国产精品久久精品日日| 午夜欧美在线一二页| 欧美三级日韩在线| 91美女视频网站| 99国产欧美另类久久久精品 | 久久黄色级2电影| 日韩不卡一区二区三区| 天天操天天干天天综合网| 五月天精品一区二区三区| 亚洲国产va精品久久久不卡综合| 中文字幕一区二区三区不卡在线 | 国产精品高清亚洲| 国产精品久久精品日日| 亚洲情趣在线观看| 亚洲高清中文字幕| 日韩1区2区日韩1区2区| 久久9热精品视频| 国产成人免费视频网站| www.欧美色图| 欧美性大战久久久| 欧美精品在线一区二区| 欧美精品一区二| **性色生活片久久毛片| 亚洲一卡二卡三卡四卡| 久久精品国产亚洲5555| 国产a精品视频| 在线观看日韩av先锋影音电影院| 欧美日韩成人一区| 久久久91精品国产一区二区三区| 中文字幕免费不卡在线| 亚洲成在人线免费| 国产一区二区三区观看| 91同城在线观看| 欧美一级欧美三级在线观看| 国产午夜久久久久| 一区二区久久久久久| 久久国产精品无码网站| 99精品欧美一区| 精品三级av在线| 中文字幕一区二区三区在线观看| 日韩国产欧美在线视频| 不卡电影一区二区三区| 欧美一区二区三区免费在线看| 国产亚洲精品精华液| 亚洲国产欧美日韩另类综合 | 日韩一二三区不卡| 国产精品免费看片| 蜜臂av日日欢夜夜爽一区| 国产成人夜色高潮福利影视| 在线一区二区三区四区五区 | 国产精品午夜免费| 亚洲综合一区二区三区| 国产高清亚洲一区| 欧美成人猛片aaaaaaa| 亚洲午夜精品在线| 99久久国产综合精品色伊| 久久影院午夜片一区| 亚洲6080在线| 欧美系列亚洲系列| 亚洲精品欧美激情| 不卡视频免费播放| 国产精品成人一区二区艾草 | 国产成人鲁色资源国产91色综| 欧美日韩大陆在线| 一区二区三区四区国产精品| 成人性生交大片免费看在线播放| 日韩欧美专区在线| 久久国产精品99久久久久久老狼| 欧美日韩激情一区| 五月婷婷久久综合| 欧美视频一二三区| 一区二区三区av电影| 91久久精品午夜一区二区| 日韩理论在线观看| 色国产综合视频| 一区二区三区中文字幕在线观看| 色综合一个色综合| 亚洲视频在线观看一区| 成人av资源在线| 亚洲欧美日韩国产综合在线 | 在线91免费看| 丝袜a∨在线一区二区三区不卡| 欧美在线看片a免费观看| 亚洲一区中文在线| 欧美日韩高清影院| 欧美精品久久99久久在免费线| 国产日韩高清在线| 福利视频网站一区二区三区| 中文一区在线播放| 9l国产精品久久久久麻豆| 一区二区三区四区视频精品免费| 91精品福利视频| 美女网站视频久久| 久久亚洲精精品中文字幕早川悠里| 精品影院一区二区久久久| 久久蜜桃av一区二区天堂 | 在线不卡一区二区| 捆绑变态av一区二区三区| 精品日韩一区二区三区| 成人福利电影精品一区二区在线观看| 国产精品美女一区二区在线观看| 一本大道av一区二区在线播放| 一区二区三区在线免费视频| 欧美美女视频在线观看| 狠狠网亚洲精品| 亚洲精品五月天| 精品日产卡一卡二卡麻豆| 国产成人夜色高潮福利影视| 亚洲一区在线观看视频| 精品99999| 91美女蜜桃在线| 激情五月激情综合网| 亚洲免费av高清| 欧美成人综合网站| 色婷婷久久综合| 精品无码三级在线观看视频| 1区2区3区精品视频| 日韩三级av在线播放| 91免费观看视频| 韩国精品主播一区二区在线观看| 国产精品成人网| 欧美精品一区二区三区四区| www.99精品| 国精产品一区一区三区mba视频| 亚洲人成网站在线| 久久久久久久久久久99999| 欧美日韩国产小视频在线观看| 国产suv精品一区二区三区| 五月婷婷久久丁香| 中文字幕在线不卡| 久久先锋影音av| 欧美在线视频日韩| 成人黄色大片在线观看| 激情丁香综合五月| 免播放器亚洲一区| 一区二区三区高清| 国产精品国产三级国产普通话蜜臀| 91精品欧美一区二区三区综合在 | 国产一区在线视频| 天天综合天天做天天综合| 亚洲婷婷国产精品电影人久久| 久久九九国产精品| 精品国产在天天线2019| 6080午夜不卡| 精品视频资源站| 色噜噜狠狠色综合欧洲selulu| 成人做爰69片免费看网站| 狠狠色狠狠色合久久伊人| 欧美a一区二区| 亚洲国产综合在线| 亚洲一区二区免费视频| 亚洲欧美激情一区二区| 中文字幕一区二区5566日韩| 国产精品色哟哟| 1024成人网| 亚洲图片自拍偷拍| 免费看日韩a级影片| 免费在线观看日韩欧美| 久久精品国内一区二区三区| 蜜臀av亚洲一区中文字幕| 免费成人av资源网| 国产伦精品一区二区三区免费迷| 精品一区二区三区视频在线观看| 麻豆91精品视频| 韩日av一区二区| 高清免费成人av| 97久久人人超碰| 欧美三级资源在线| 日韩欧美一二区| 国产三级欧美三级日产三级99| 中文字幕精品三区| 一区二区国产视频| 日韩高清在线一区| 国产99精品视频| 91国偷自产一区二区三区成为亚洲经典| 在线观看亚洲精品| 日韩视频在线永久播放| 国产午夜精品在线观看| 亚洲三级小视频| 天天影视色香欲综合网老头| 韩国一区二区三区| 91视频观看视频| 日韩午夜在线观看| 亚洲国产精品ⅴa在线观看| 一区二区在线观看视频在线观看| 日韩高清在线不卡| 成人av电影在线播放| 欧美日韩精品系列| 国产欧美日韩卡一| 五月婷婷色综合| 成人免费看视频| 欧美一区二区三区免费大片| 国产欧美日韩在线观看| 亚洲第一电影网| 国产成人精品一区二区三区网站观看| 91网站在线播放| 中文字幕av一区二区三区高 | 日本免费新一区视频| 国产精品小仙女| 制服.丝袜.亚洲.另类.中文|