00001 #ifndef HEADER_CURL_HTTP_PROXY_H 00002 #define HEADER_CURL_HTTP_PROXY_H 00003 /*************************************************************************** 00004 * _ _ ____ _ 00005 * Project ___| | | | _ \| | 00006 * / __| | | | |_) | | 00007 * | (__| |_| | _ <| |___ 00008 * \___|\___/|_| \_\_____| 00009 * 00010 * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. 00011 * 00012 * This software is licensed as described in the file COPYING, which 00013 * you should have received as part of this distribution. The terms 00014 * are also available at https://curl.haxx.se/docs/copyright.html. 00015 * 00016 * You may opt to use, copy, modify, merge, publish, distribute and/or sell 00017 * copies of the Software, and permit persons to whom the Software is 00018 * furnished to do so, under the terms of the COPYING file. 00019 * 00020 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 00021 * KIND, either express or implied. 00022 * 00023 ***************************************************************************/ 00024 00025 #if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP) 00026 /* ftp can use this as well */ 00027 CURLcode Curl_proxyCONNECT(struct connectdata *conn, 00028 int tunnelsocket, 00029 const char *hostname, int remote_port, 00030 bool blocking); 00031 00032 /* Default proxy timeout in milliseconds */ 00033 #define PROXY_TIMEOUT (3600*1000) 00034 00035 CURLcode Curl_proxy_connect(struct connectdata *conn, int sockindex); 00036 00037 #else 00038 #define Curl_proxyCONNECT(x,y,z,w,v) CURLE_NOT_BUILT_IN 00039 #define Curl_proxy_connect(x,y) CURLE_OK 00040 #endif 00041 00042 #endif /* HEADER_CURL_HTTP_PROXY_H */