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
|
|
|
|
|
2014-06-27 06:40:08 +08:00
|
|
|
extern int curlopen(CURL** curlp);
|
|
|
|
extern void curlclose(CURL*);
|
|
|
|
|
2017-09-01 04:19:56 +08:00
|
|
|
extern OCerror ocfetchurl(CURL*, const char*, NCbytes*, long*);
|
2014-05-09 04:13:51 +08:00
|
|
|
extern OCerror ocfetchurl_file(CURL*, const char*, FILE*, off_t*, long*);
|
2012-08-01 04:34:13 +08:00
|
|
|
|
|
|
|
extern long ocfetchhttpcode(CURL* curl);
|
|
|
|
|
2014-05-09 04:13:51 +08:00
|
|
|
extern OCerror ocfetchlastmodified(CURL* curl, char* url, long* filetime);
|
2012-08-01 04:34:13 +08:00
|
|
|
|
2014-05-09 04:13:51 +08:00
|
|
|
extern OCerror occurlopen(CURL** curlp);
|
2012-08-01 04:34:13 +08:00
|
|
|
extern void occurlclose(CURL* curlp);
|
|
|
|
|
2014-05-09 04:13:51 +08:00
|
|
|
extern OCerror ocping(const char* url);
|
2012-08-01 04:34:13 +08:00
|
|
|
|
|
|
|
#endif /*HTTP_H*/
|