2012-08-01 04:34:13 +08:00
|
|
|
/*
|
|
|
|
* occurlfunction.h
|
|
|
|
*
|
|
|
|
* Created on: Mar 5, 2009
|
|
|
|
* Author: rikki
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CURLFUNCTION_H_
|
|
|
|
#define _CURLFUNCTION_H_
|
|
|
|
|
|
|
|
|
2017-09-19 06:44:31 +08:00
|
|
|
/* Condition on libcurl version */
|
|
|
|
/* Set up an alias as needed */
|
|
|
|
#ifndef HAVE_CURLOPT_KEYPASSWD
|
|
|
|
#define CURLOPT_KEYPASSWD CURLOPT_SSLKEYPASSWD
|
|
|
|
#endif
|
|
|
|
#ifndef HAVE_CURLINFO_RESPONSE_CODE
|
|
|
|
#define CURLINFO_RESPONSE_CODE CURLINFO_HTTP_CODE
|
|
|
|
#endif
|
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern OCerror ocset_curlopt(OCstate* state, int flag, void* value);
|
2014-12-27 03:37:07 +08:00
|
|
|
|
|
|
|
struct OCCURLFLAG* occurlflagbyflag(int flag);
|
|
|
|
struct OCCURLFLAG* occurlflagbyname(const char* name);
|
2014-12-25 01:22:47 +08:00
|
|
|
|
|
|
|
extern OCerror ocset_flags_perfetch(OCstate*);
|
|
|
|
extern OCerror ocset_flags_perlink(OCstate*);
|
2012-08-01 04:34:13 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern OCerror ocset_curlflag(OCstate*,int);
|
2012-08-01 04:34:13 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern void oc_curl_debug(OCstate* state);
|
2012-08-01 04:34:13 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern void oc_curl_printerror(OCstate* state);
|
|
|
|
extern int ocrc_netrc_required(OCstate* state);
|
2017-09-01 04:19:56 +08:00
|
|
|
extern void oc_curl_protocols(OCstate* state);
|
2014-12-25 01:22:47 +08:00
|
|
|
|
|
|
|
/* From occurlflags.c */
|
|
|
|
extern struct OCCURLFLAG* occurlflags(void);
|
|
|
|
extern struct OCCURLFLAG* occurlflagbyname(const char*);
|
|
|
|
extern struct OCCURLFLAG* occurlflagbyflag(int);
|
2017-03-09 08:01:10 +08:00
|
|
|
extern char* occombinehostport(const NCURI* uri);
|
2014-12-25 01:22:47 +08:00
|
|
|
|
|
|
|
#endif /*_CURLFUNCTION_H_*/
|