//--------------------------------------------------------------------------- #ifndef THTTPdownloaderH #define THTTPdownloaderH //--------------------------------------------------------------------------- #include #include #include #include #include #include #include //--------------------------------------------------------------------------- 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