first commit (2005-12-25)
This commit is contained in:
42
scr/THTTPdownloader.~h
Normal file
42
scr/THTTPdownloader.~h
Normal file
@ -0,0 +1,42 @@
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#ifndef THTTPdownloaderH
|
||||
#define THTTPdownloaderH
|
||||
//---------------------------------------------------------------------------
|
||||
#include <Classes.hpp>
|
||||
#include <Controls.hpp>
|
||||
#include <StdCtrls.hpp>
|
||||
#include <Forms.hpp>
|
||||
#include <ComCtrls.hpp>
|
||||
#include <Sockets.hpp>
|
||||
#include <ExtCtrls.hpp>
|
||||
//---------------------------------------------------------------------------
|
||||
typedef struct HTTP_headers
|
||||
|
||||
{
|
||||
AnsiString key;
|
||||
AnsiString value;
|
||||
} THTTP_headers;
|
||||
|
||||
typedef THTTP_headers* HTTPheaders_list;
|
||||
//---------------------------------------------------------------------------
|
||||
class THTTPdownloader : public TForm
|
||||
{
|
||||
__published: // IDE-managed Components
|
||||
TTcpClient *TcpClient1;
|
||||
TRichEdit *httpResult;
|
||||
TPanel *Panel1;
|
||||
TRichEdit *statusBar;
|
||||
TCheckBox *debug;
|
||||
void __fastcall FormDestroy(TObject *Sender);
|
||||
private: // User declarations
|
||||
public: // User declarations
|
||||
__fastcall THTTPdownloader(TComponent* Owner);
|
||||
TList *headers;
|
||||
|
||||
int __fastcall descargarHTML(char *host, char *request, TStream *out);
|
||||
};
|
||||
//---------------------------------------------------------------------------
|
||||
extern PACKAGE THTTPdownloader *HTTPdownloader;
|
||||
//---------------------------------------------------------------------------
|
||||
#endif
|
||||
Reference in New Issue
Block a user