21 #ifndef otbCurlHelper_h
22 #define otbCurlHelper_h
57 int RetrieveFile(
const std::ostringstream& urlStream, std::string filename)
const override;
59 int RetrieveFile(
const std::string& urlString, std::string filename)
const override;
63 int RetrieveFileMulti(
const std::vector<std::string>& listURLs,
const std::vector<std::string>& listFiles,
int maxConnect)
const override;
65 itkGetMacro(Timeout,
long int);
67 itkSetMacro(Timeout,
long int);
72 "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.8.1.11) "
73 "Gecko/20071127 Firefox/2.0.0.11"),
Class to use the curl capabilities from OTB.
Class to use the curl capabilities from OTB.
bool TestUrlAvailability(const std::string &url) const override
static vcl_size_t CallbackWriteDataToFile(void *ptr, vcl_size_t size, vcl_size_t nmemb, void *data)
CurlHelper(const Self &)=delete
int RetrieveFile(const std::ostringstream &urlStream, std::string filename) const override
int RetrieveFileMulti(const std::vector< std::string > &listURLs, const std::vector< std::string > &listFiles, int maxConnect) const override
itk::SmartPointer< Self > Pointer
int RetrieveUrlInMemory(const std::string &urlString, std::string &output) const override
static vcl_size_t CallbackWriteDataToStringStream(void *ptr, vcl_size_t size, vcl_size_t nmemb, void *data)
void operator=(const Self &)=delete
bool IsCurlReturnHttpError(const std::string &url) const
itk::SmartPointer< const Self > ConstPointer
CurlHelperInterface Superclass
int RetrieveFile(const std::string &urlString, std::string filename) const override
static vcl_size_t CallbackWriteDataDummy(void *ptr, vcl_size_t size, vcl_size_t nmemb, void *data)
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.