File: d4http.h

package info (click to toggle)
netcdf 1:4.7.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 104,952 kB
  • sloc: ansic: 228,683; sh: 10,980; yacc: 2,561; makefile: 1,319; lex: 1,173; xml: 173; awk: 2
file content (24 lines) | stat: -rw-r--r-- 801 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*********************************************************************
  *   Copyright 2018, UCAR/Unidata
  *   See netcdf/COPYRIGHT file for copying and redistribution conditions.
  *********************************************************************/

#ifndef D4HTTP_H
#define D4HTTP_H 1

extern int curlopen(CURL** curlp);
extern void curlclose(CURL*);

extern ncerror ncd4_fetchurl(CURL*, const char*, NCbytes*, long*, struct credentials*);
extern ncerror ncd4_fetchurl_file(CURL*, const char*, FILE*, d4size_t*, long*);

extern long ncd4_fetchhttpcode(CURL* curl);

extern ncerror ncd4_fetchlastmodified(CURL* curl, char* url, long* filetime);

extern ncerror ncd4_curlopen(CURL** curlp);
extern void ncd4_curlclose(CURL* curlp);

extern ncerror ncd4_ping(const char* url);

#endif /*D4HTTP_H*/