ochttp.h 585 B

12345678910111213141516171819202122
  1. /* Copyright 2009, UCAR/Unidata and OPeNDAP, Inc.
  2. See the COPYRIGHT file for more information. */
  3. #ifndef HTTP_H
  4. #define HTTP_H 1
  5. extern int curlopen(CURL** curlp);
  6. extern void curlclose(CURL*);
  7. extern int ocfetchurl(CURL*, const char*, OCbytes*, long*);
  8. extern int ocfetchurl_file(CURL*, const char*, FILE*, unsigned long*, long*);
  9. extern long ocfetchhttpcode(CURL* curl);
  10. extern int ocfetchlastmodified(CURL* curl, char* url, long* filetime);
  11. extern int occurlopen(CURL** curlp);
  12. extern void occurlclose(CURL* curlp);
  13. extern int ocping(const char* url);
  14. #endif /*HTTP_H*/