2010-06-03 21:24:43 +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*);
|
|
|
|
|
2012-06-23 05:54:52 +08:00
|
|
|
extern int ocfetchurl(CURL*, const char*, OCbytes*, long*);
|
|
|
|
extern int ocfetchurl_file(CURL*, const char*, FILE*, unsigned long*, long*);
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
extern long ocfetchhttpcode(CURL* curl);
|
|
|
|
|
|
|
|
extern int ocfetchlastmodified(CURL* curl, char* url, long* filetime);
|
|
|
|
|
|
|
|
extern int occurlopen(CURL** curlp);
|
|
|
|
extern void occurlclose(CURL* curlp);
|
|
|
|
|
2012-06-23 05:54:52 +08:00
|
|
|
extern int ocping(const char* url);
|
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
#endif /*HTTP_H*/
|