33 if(host==
"localhost") {
37 fLocalFile = Form(
"/tmp/%s%d",gSystem->BaseName(
fUrl->
GetFile().Data()),gSystem->GetPid());
72 TString ret = str.Strip(TString::kBoth);
74 const char*
s = ret.Data();
76 if(s[0]==
'\"' || s[strlen(s)-1]==
'\"' ) {
78 ret.ReplaceAll(quote,
"");
82 ((ret.Length()==1) && !isalpha(s[0]) ) )
return "wrong format";
84 for (Ssiz_t
i = 0;
i < ret.Length();
i++) {
85 if( !isalnum(s[
i]) && !isspace(s[i]) &&
86 s[
i]!=
')' && s[
i]!=
'(' && s[
i]!=
',' &&
87 s[
i]!=
'_' && s[
i]!=
'-' ) {
88 return "wrong format";
90 if(isspace(s[i])) spidx = i;
94 if(!spidx) ret +=
" TEXT NOT NULL";
104 const Int_t buflen=8192;
105 static char buf[buflen];
108 filename.ReplaceAll(
" ",
"");
112 TSocket
s(u.GetHost(), u.GetPort());
119 TString
msg = Form(
"GET %s HTTP/1.0\015\012\015\012", u.GetFile());
120 s.SendRaw(msg.Data(), msg.Length());
122 while(
s.RecvRaw(buf, buflen)>0) {
124 memset(buf,0,buflen);
130 idx = str.Index(
"\015\012\015\012");
131 if(idx!=kNPOS) str =
str(idx+4,str.Length()-idx-4);
136 idx = fwrite(str.Data(),str.Length(),1,
fd);
166 if(gSystem->AccessPathName(
fLocalFile.Data())) {
179 str =
"You don't have read permission to ";
185 const Int_t buflen=8192;
188 fgets(buf,buflen,fd);
204 Bool_t wrongFormat = kFALSE;
206 for( i=k=0; (i=str.Index(
",",i))>0; k=i++ ) {
209 wrongFormat = wrongFormat || tmp.IsNull() || (tmp==
"wrong format");
210 if(!wrongFormat)
fColumns += tmp +
",";
216 wrongFormat = wrongFormat || (tmp==
"wrong format");
220 for(i=1; i<ncols; i++)
fColumns += Form(
"C%d TEXT NOT NULL,",i);
221 fColumns += Form(
"C%d TEXT NOT NULL",ncols);