FACT++  1.0
void ConnectionLid::PostRequest ( string  cmd,
const string &  args = "" 
)
inlineprivate

Definition at line 234 of file lidctrl.cc.

235  {
236  cmd += " "+fSite+" HTTP/1.1\r\n"
237  //"Connection: Keep-Alive\r\n"
238  ;
239 
240  ostringstream msg;
241  msg << args.length();
242 
243  cmd += "Content-Length: ";
244  cmd += msg.str();
245  cmd +="\r\n";
246 
247  if (args.length()>0)
248  cmd += "\r\n"+args + "\r\n";
249 
250  cmd += "\r\n";
251 
252  //cout << "Post: " << cmd << endl;
253  PostMessage(cmd);
254  }
void PostMessage(const void *msg, size_t s=0)
string fSite
Definition: lidctrl.cc:86