1 #ifndef __ECLCONNECTION_HPP_ 
    2 #define __ECLCONNECTION_HPP_ 
    8 #include <otsdaq-utilities/ECLWriter/ECL.hxx> 
   20     ECLConnection(std::string user, std::string password, std::string url);
 
   23     const std::string& getSafeURL(
void)
 const { 
return _safe_url; }
 
   25     bool               Get(std::string, std::string&);
 
   26     bool               Search(std::string);
 
   28     static std::string EscapeECLString(std::string input = 
"");
 
   30     static Attachment_t MakeAttachmentImage(std::string 
const& imageFileName);
 
   32     static Attachment_t MakeAttachmentFile(std::string 
const& fileName);
 
   35     std::string   MakeSaltString();
 
   36     static size_t WriteMemoryCallback(
char*, 
size_t, 
size_t, std::string*);
 
   40     std::string _url, _safe_url;
 
   41     time_t      _lastOperationTime = 0;
 
bool Get(std::string, std::string &)
Note: make sure GET url parameter 's' is URI encoded.