ROOT  6.06/09
Reference Guide
Functions | Variables
TWebFile.cxx File Reference
#include "TWebFile.h"
#include "TROOT.h"
#include "TSocket.h"
#include "Bytes.h"
#include "TError.h"
#include "TSystem.h"
#include "TBase64.h"
#include "TVirtualPerfStats.h"
#include <errno.h>
#include <stdlib.h>
+ Include dependency graph for TWebFile.cxx:

Go to the source code of this file.

Functions

 ClassImp (TWebFile) TWebFile
 Create a Web file object. More...
 

Variables

static const char * gUserAgent = "User-Agent: ROOT-TWebFile/1.1"
 

Function Documentation

ClassImp ( TWebFile  )

Create a Web file object.

A web file is the same as a read-only TFile except that it is being read via a HTTP server. The url argument must be of the form: http://host.dom.ain/file.root. The opt can be "NOPROXY", to bypass any set "http_proxy" shell variable. The proxy can be specified as (in sh, or equivalent csh): export http_proxy=http://pcsalo.cern.ch:3128 The proxy can also be specified via the static method TWebFile::SetProxy(). Basic authentication (AuthType Basic) is supported. The user name and passwd can be specified in the url like this: http://username:mypasswd@pcsalo.cern.ch/files/aap.root If the file specified in the URL does not exist or is not accessible the kZombie bit will be set in the TWebFile object. Use IsZombie() to see if the file is accessible. The preferred interface to this constructor is via TFile::Open().

Definition at line 125 of file TWebFile.cxx.

Variable Documentation

const char* gUserAgent = "User-Agent: ROOT-TWebFile/1.1"
static

Definition at line 45 of file TWebFile.cxx.

Referenced by TWebFile::GetHead(), and TWebFile::SetMsgReadBuffer10().