90 static void SetProxy(
const char *url);
virtual Bool_t ReadBuffer10(char *buf, Int_t len)
Read specified byte range from remote file via HTTP 1.0 daemon (without mod-root installed).
virtual Bool_t IsOpen() const
A TWebFile that has been correctly constructed is always considered open.
virtual Long64_t GetSize() const
Return maximum file size.
virtual TString BasicAuthentication()
Return basic authentication scheme, to be added to the request.
This class represents a WWW compatible URL.
Int_t MakeDirectory(const char *name)
Make a directory via httpd. Not supported.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual Int_t GetHunk(TSocket *s, char *hunk, Int_t maxsize)
Read a hunk of data from the socket, up until a terminator.
virtual void SetMsgReadBuffer10(const char *redirectLocation=0, Bool_t tempRedirect=kFALSE)
Set GET command for use by ReadBuffer(s)10(), handle redirection if needed.
static void SetProxy(const char *url)
Static method setting global proxy URL.
virtual void ProcessHttpHeader(const TString &headerLine)
Process the HTTP header in the argument.
virtual Int_t GetLine(TSocket *s, char *line, Int_t maxsize)
Read a line from the socket.
virtual Int_t GetFromWeb10(char *buf, Int_t len, const TString &msg)
Read multiple byte range request from web server.
static const char * GetProxy()
Static method returning the global proxy URL.
virtual const char * HttpTerminator(const char *start, const char *peeked, Int_t peeklen)
Determine whether [START, PEEKED + PEEKLEN) contains an HTTP new line [] .
#define ClassDef(name, id)
const char * GetDirEntry(void *dirp)
Get directory entry via httpd. Returns 0 in case no more entries.
virtual Bool_t ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf)
Read specified byte ranges from remote file via HTTP daemon.
virtual Bool_t ReadBuffer(char *buf, Int_t len)
Read specified byte range from remote file via HTTP daemon.
Int_t Unlink(const char *path)
Unlink, i.e.
virtual void Seek(Long64_t offset, ERelativeTo pos=kBeg)
Set position from where to start reading.
void FreeDirectory(void *dirp)
Free directory via httpd.
virtual void CheckProxy()
Check if shell var "http_proxy" has been set and should be used.
virtual ~TWebFile()
Cleanup.
void * OpenDirectory(const char *name)
Open a directory via httpd.
Int_t GetPathInfo(const char *path, FileStat_t &buf)
Get info about a file.
virtual Int_t GetHead()
Get the HTTP header.
virtual void Init(Bool_t readHeadOnly)
Initialize a TWebFile object.
TWebSystem()
Create helper class that allows directory access via httpd.
Abstract base class defining a generic interface to the underlying Operating System.
virtual Bool_t ReadBuffers10(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf)
Read specified byte ranges from remote file via HTTP 1.0 daemon (without mod-root installed)...
virtual Int_t GetFromWeb(char *buf, Int_t len, const TString &msg)
Read request from web server.
Bool_t AccessPathName(const char *path, EAccessMode mode)
Returns FALSE if one can access a file using the specified access mode.
virtual Int_t ReOpen(Option_t *mode)
Reopen a file with a different access mode, like from READ to UPDATE or from NEW, CREATE...