1 /* Copyright (c) MediaArea.net SARL. All Rights Reserved. 2 * 3 * Use of this source code is governed by a zlib-style license that can 4 * be found in the License.txt file in the root of the source tree. 5 */ 6 7 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 8 // 9 // Basic HTTP client 10 // 11 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 12 13 //--------------------------------------------------------------------------- 14 #ifndef ZenLib_HTTPClientH 15 #define ZenLib_HTTPClientH 16 //--------------------------------------------------------------------------- 17 18 //--------------------------------------------------------------------------- 19 #include "ZenLib/Ztring.h" 20 //--------------------------------------------------------------------------- 21 22 namespace ZenLib 23 { 24 25 //*************************************************************************** 26 /// @brief Basic HTTP client 27 //*************************************************************************** 28 29 class HTTP_Client 30 { 31 public : 32 //Constructor/Destructor 33 HTTP_Client (); 34 ~HTTP_Client (); 35 36 //Open/Close 37 int Open (Ztring URL); 38 void Close (); 39 40 //Read 41 Ztring Read(); 42 43 private : 44 int32u Handle; 45 }; 46 47 } //NameSpace 48 49 #endif 50