netcdf-c/oc2/ochttp.h
dmh 774428f2fd There are a number of cases in the oc code
where a procedure is defined to return int
and really returns OCerror. This causes
problems in AIX. Fixed those I could find.
2014-05-08 14:13:51 -06:00

20 lines
554 B
C

/* Copyright 2009, UCAR/Unidata and OPeNDAP, Inc.
See the COPYRIGHT file for more information. */
#ifndef HTTP_H
#define HTTP_H 1
extern OCerror ocfetchurl(CURL*, const char*, OCbytes*, long*, struct OCcredentials*);
extern OCerror ocfetchurl_file(CURL*, const char*, FILE*, off_t*, long*);
extern long ocfetchhttpcode(CURL* curl);
extern OCerror ocfetchlastmodified(CURL* curl, char* url, long* filetime);
extern OCerror occurlopen(CURL** curlp);
extern void occurlclose(CURL* curlp);
extern OCerror ocping(const char* url);
#endif /*HTTP_H*/