2012-08-01 04:34:13 +08:00
|
|
|
/* Copyright 2009, UCAR/Unidata and OPeNDAP, Inc.
|
|
|
|
See the COPYRIGHT file for more information. */
|
|
|
|
|
|
|
|
#ifndef HTTP_H
|
|
|
|
#define HTTP_H 1
|
|
|
|
|
|
|
|
extern int curlopen(CURL** curlp);
|
|
|
|
extern void curlclose(CURL*);
|
|
|
|
|
2014-03-15 04:07:35 +08:00
|
|
|
extern int ocfetchurl(CURL*, const char*, OCbytes*, long*, struct OCcredentials*);
|
2012-08-01 04:34:13 +08:00
|
|
|
extern int ocfetchurl_file(CURL*, const char*, FILE*, off_t*, long*);
|
|
|
|
|
|
|
|
extern long ocfetchhttpcode(CURL* curl);
|
|
|
|
|
|
|
|
extern int ocfetchlastmodified(CURL* curl, char* url, long* filetime);
|
|
|
|
|
|
|
|
extern int occurlopen(CURL** curlp);
|
|
|
|
extern void occurlclose(CURL* curlp);
|
|
|
|
|
|
|
|
extern int ocping(const char* url);
|
|
|
|
|
|
|
|
#endif /*HTTP_H*/
|