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

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

?? httppg1.cpp

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


Author:       Fran鏾is PIETTE
Email:        francois.piette@pophost.eunet.be  http://www.rtfm.be/fpiette
              francois.piette@rtfm.be
Creation:     December 4, 1997
Version:      1.04
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.
Support:      There is a mailing list for support. See web site for
              subscription http://www.rtfm.be/fpiette/supportuk.htm
Legal issues: Copyright (C) 1997, 1998 by Fran鏾is PIETTE 
              <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.
Apr 11, 1998  V1.02 Adapted for BCB3
Jul 23, 1998  V1.03 Corrected a parenthesis error in Encode.
              Thanks to Albert Wiersch <al@tetrion.com> for pointing this bug.
Aug 15, 1999  V1.04 Adapted for BCB4 (Moved FIniFileName initialization from
              FormCreate to form constructor).
Apr 02, 2000  V1.05 Adapted for BCB5 (removed "#define _WINSPOOL_" SetPortA syndrome)

  ---------------------------------------------------------------------------*/
#if __BORLANDC__ == 0x520     // BCB1 is BC5.20   BCB3 is BC5.30
    #define _WINSOCKAPI_      // Prevent winsock.h from being included
#endif
#include <vcl\vcl.h>
#include <vcl\inifiles.hpp>
#pragma hdrstop

#include "HttpPg1.h"
//---------------------------------------------------------------------------
#pragma link "HttpProt"
#pragma resource "*.dfm"
#define HttpPgVersion 101
#define SectionData   "Data"
#define KeyUserID     "UserID"
#define KeyUserName   "UserName"
#define KeyEMail      "EMail"
#define KeyMessage    "Message"
#define KeyProxy      "Proxy"
#define SectionWindow "Window"
#define KeyTop        "Top"
#define KeyLeft       "Left"
#define KeyWidth      "Width"
#define KeyHeight     "Height"
THttpTestForm *HttpTestForm;
//---------------------------------------------------------------------------
__fastcall THttpTestForm::THttpTestForm(TComponent* Owner)
    : TForm(Owner)
{
    FIniFileName = LowerCase(ExtractFileName(Application->ExeName));
    FIniFileName.SetLength(FIniFileName.Length() - 3);
    FIniFileName = FIniFileName + "ini";
}
//---------------------------------------------------------------------------
void __fastcall THttpTestForm::FormCreate(TObject *Sender)
{
    DisplayMemo->Clear();
}
//---------------------------------------------------------------------------
AnsiString __fastcall Encode(AnsiString msg)
{
    int        I;
    AnsiString Result;
    char       ch;

//    Result = new AnsiString;
    Result = "";
    for (I = 1; I < msg.Length(); I++) {
        ch = (msg)[I];
        if (ch == ' ')
            Result = Result + "+";
        else if ((toupper(ch) < 'A') || (toupper(ch) > 'Z'))
            Result = Result + "%" + IntToHex(ch, 2);
        else
            Result = Result + ch;
    }
    return(Result);
}
//---------------------------------------------------------------------------
void __fastcall THttpTestForm::SendButtonClick(TObject *Sender)
{
    TMemoryStream *DataIn;
    TMemoryStream *DataOut;
    AnsiString    Buf;
    BOOL          bSuccess;

    DisplayMemo->Clear();
    DataIn  = new TMemoryStream;
    DataOut = new TMemoryStream;
    bSuccess = TRUE;
    try {
        Buf     = "ID=" + UserIDEdit->Text +
                  "&REMITE=" + EMailEdit->Text +
                  "&MENSAJE=" + Encode(MessageEdit->Text);
        DataOut->Write(&Buf[1], Buf.Length());
        DataOut->Seek(0, soFromBeginning);

        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 {
            HttpCli1->Post();
        }
        __except (TRUE) {
            bSuccess = FALSE;
        }
        if (bSuccess) {
            DataIn->Seek(0, 0);
            DisplayMemo->Lines->LoadFromStream(DataIn);
        }
        SendButton->Enabled  = TRUE;
        AbortButton->Enabled = FALSE;
    }
    __except (TRUE) {
        bSuccess = FALSE;
    }
    if (!bSuccess)
        DisplayMemo->Lines->Add("Failed : " + HttpCli1->ReasonPhrase);

    delete DataOut;
    delete DataIn;
}
//---------------------------------------------------------------------------
void __fastcall THttpTestForm::AbortButtonClick(TObject *Sender)
{
    HttpCli1->Abort();
}
//---------------------------------------------------------------------------
void __fastcall THttpTestForm::FormShow(TObject *Sender)
{
    TIniFile *IniFile;

    if (!FInitialized) {
        FInitialized = TRUE;
        IniFile      = new TIniFile(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);

        delete IniFile;
    }
}
//---------------------------------------------------------------------------
void __fastcall THttpTestForm::FormClose(TObject *Sender, TCloseAction &Action)
{
    TIniFile *IniFile;

    IniFile = new TIniFile(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);
    delete IniFile;
}
//---------------------------------------------------------------------------

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区第一页| 亚洲综合自拍偷拍| 日韩欧美激情一区| 在线成人av影院| 欧美日本在线看| 欧美日韩成人综合| 欧美裸体bbwbbwbbw| 欧美精品久久天天躁| 欧美美女喷水视频| 日韩久久久久久| 久久综合999| 国产精品久久久久久亚洲毛片| 国产精品乱码一区二三区小蝌蚪| 国产精品视频在线看| 国产精品久久精品日日| 亚洲欧美日韩国产成人精品影院| 亚洲精品午夜久久久| 天天综合网 天天综合色| 日韩av电影一区| 国内一区二区在线| 97成人超碰视| 欧美电影影音先锋| 欧美经典一区二区| 亚洲精选免费视频| 偷拍与自拍一区| 九九精品视频在线看| 成人性视频网站| 欧美日韩国产另类一区| 精品国产乱码久久久久久夜甘婷婷| 久久综合九色综合欧美98| 国产精品狼人久久影院观看方式| 一区二区三区免费| 久久福利资源站| 91农村精品一区二区在线| 欧美一区二区三区四区视频| 久久久久久久久一| 一区二区日韩av| 国产一区二三区| 欧美在线观看视频在线| 久久久久久久精| 亚洲国产精品一区二区www| 国产曰批免费观看久久久| 色婷婷综合久久久中文一区二区| 国产精品久久久久久久久久免费看 | 国产日韩综合av| 亚洲国产毛片aaaaa无费看| 精品一二三四区| 欧美色图一区二区三区| 久久久噜噜噜久久中文字幕色伊伊| 亚洲综合免费观看高清完整版| 国产精品一区二区在线观看网站 | 日本欧美在线看| 国产最新精品精品你懂的| 欧美午夜片在线观看| 欧美国产一区二区| 久久国产生活片100| 欧美吻胸吃奶大尺度电影| 久久精品日韩一区二区三区| 亚洲成人自拍网| 91色综合久久久久婷婷| 国产欧美精品一区二区色综合| 美女视频网站久久| 欧美日韩电影在线| 亚洲午夜精品在线| 91成人免费在线| 亚洲乱码中文字幕| 不卡视频一二三四| 日本一区二区不卡视频| 国产成a人无v码亚洲福利| 精品美女在线观看| 精品一区二区久久久| 欧美一区二区视频网站| 亚洲无人区一区| 欧美日韩视频在线观看一区二区三区 | 蜜芽一区二区三区| 91精品国产色综合久久不卡蜜臀| 亚洲一区二区美女| 欧美久久久久久久久| 亚洲va国产va欧美va观看| 欧美日韩在线精品一区二区三区激情| 亚洲女爱视频在线| 欧美亚洲免费在线一区| 亚洲国产乱码最新视频 | 国产精品夜夜嗨| 欧美精品一区二区三区视频| 麻豆一区二区三| 国产色91在线| 99精品国产视频| 亚洲综合av网| 欧美一区二区三区喷汁尤物| 久久99精品国产.久久久久 | 国产伦理精品不卡| 国产欧美日韩另类视频免费观看| 成人免费视频一区| 亚洲美女电影在线| 在线不卡的av| 毛片av一区二区| 中文字幕欧美国产| 在线观看免费一区| 日韩电影在线免费观看| 欧美mv和日韩mv的网站| 欧美午夜精品一区| 免费成人av资源网| 国产日韩欧美精品在线| 91丝袜国产在线播放| 亚洲电影在线免费观看| 精品国产伦一区二区三区观看体验| 粉嫩蜜臀av国产精品网站| 夜夜爽夜夜爽精品视频| 日韩精品一区国产麻豆| 成人午夜私人影院| 蜜臀av一区二区在线观看 | 大胆欧美人体老妇| 亚洲午夜视频在线| 久久九九影视网| 欧美日韩在线三级| 成人久久18免费网站麻豆| 亚洲国产毛片aaaaa无费看| 久久欧美一区二区| 欧美精品色综合| 不卡av在线免费观看| 男人操女人的视频在线观看欧美| 国产日韩欧美精品一区| 日韩欧美中文字幕精品| 91小视频在线免费看| 精品综合免费视频观看| 一区二区三区不卡视频在线观看| 国产欧美视频在线观看| 在线播放欧美女士性生活| 北条麻妃国产九九精品视频| 精彩视频一区二区三区| 天天做天天摸天天爽国产一区| 亚洲欧洲精品天堂一级| 欧美mv和日韩mv的网站| 欧美日韩视频在线观看一区二区三区 | 综合久久久久久| 国产婷婷色一区二区三区四区| 51精品久久久久久久蜜臀| 91免费国产视频网站| 国产成人免费视频一区| 麻豆成人免费电影| 日韩av一区二| 日本午夜一本久久久综合| 一区二区三区欧美亚洲| 亚洲三级久久久| 亚洲国产成人私人影院tom| 26uuu精品一区二区三区四区在线| 91麻豆精品国产91久久久久 | 免费av成人在线| 舔着乳尖日韩一区| 首页综合国产亚洲丝袜| 亚洲一级电影视频| 亚洲高清视频中文字幕| 亚洲国产日韩一区二区| 一个色在线综合| 亚洲一区av在线| 一二三四社区欧美黄| 亚洲理论在线观看| 亚洲小说欧美激情另类| 亚洲午夜激情网页| 五月天激情综合网| 免费成人小视频| 国产精一区二区三区| 国产伦精品一区二区三区免费| 国产麻豆日韩欧美久久| 国产91高潮流白浆在线麻豆| 国产宾馆实践打屁股91| 91网页版在线| 欧美久久久久久蜜桃| 欧美va亚洲va| 国产精品视频第一区| 亚洲成人在线观看视频| 日韩国产欧美在线观看| 久久国产精品免费| 国产.精品.日韩.另类.中文.在线.播放| 国产盗摄精品一区二区三区在线| 94-欧美-setu| 欧美久久一区二区| 久久久精品中文字幕麻豆发布| 国产精品色哟哟网站| 亚洲国产精品久久人人爱蜜臀 | 精品久久久久久综合日本欧美| 久久精品夜色噜噜亚洲aⅴ| 亚洲欧美在线观看| 亚洲第四色夜色| 国产精品99久久久| 欧美色倩网站大全免费| 久久综合久久综合久久综合| 椎名由奈av一区二区三区| 日韩国产精品久久久| 成人激情黄色小说| 欧美一区二区精品久久911| 中文av一区特黄| 日韩电影免费一区| www.色综合.com| 精品少妇一区二区三区在线播放| 最新热久久免费视频| 六月丁香婷婷色狠狠久久| 色狠狠一区二区| 国产精品天天看|