Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Pull request Compare This branch is 4251 commits behind bagder:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
.gitignore
CMakeLists.txt
Makefile.Watcom
Makefile.am
Makefile.b32
Makefile.inc
Makefile.m32
Makefile.netware
Makefile.vc6
Makefile.vxworks
README.ares
README.curl_off_t
README.curlx
README.encoding
README.hostip
README.httpauth
README.memoryleak
README.multi_socket
README.pingpong
README.pipelining
amigaos.c
amigaos.h
arpa_telnet.h
asyn-ares.c
asyn-thread.c
asyn.h
axtls.c
axtls.h
base64.c
checksrc.pl
config-amigaos.h
config-dos.h
config-mac.h
config-os400.h
config-riscos.h
config-symbian.h
config-tpf.h
config-vms.h
config-vxworks.h
config-win32.h
config-win32ce.h
connect.c
connect.h
content_encoding.c
content_encoding.h
cookie.c
cookie.h
curl_addrinfo.c
curl_addrinfo.h
curl_base64.h
curl_config.h.cmake
curl_darwinssl.c
curl_darwinssl.h
curl_fnmatch.c
curl_fnmatch.h
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c
curl_gssapi.h
curl_hmac.h
curl_ldap.h
curl_md4.h
curl_md5.h
curl_memory.h
curl_memrchr.c
curl_memrchr.h
curl_multibyte.c
curl_multibyte.h
curl_ntlm.c
curl_ntlm.h
curl_ntlm_core.c
curl_ntlm_core.h
curl_ntlm_msgs.c
curl_ntlm_msgs.h
curl_ntlm_wb.c
curl_ntlm_wb.h
curl_rand.c
curl_rand.h
curl_rtmp.c
curl_rtmp.h
curl_sasl.c
curl_sasl.h
curl_schannel.c
curl_schannel.h
curl_sspi.c
curl_sspi.h
curl_threads.c
curl_threads.h
curlx.h
cyassl.c
cyassl.h
dict.c
dict.h
easy.c
easyif.h
escape.c
escape.h
file.c
file.h
fileinfo.c
fileinfo.h
firefox-db2pem.sh
formdata.c
formdata.h
ftp.c
ftp.h
ftplistparser.c
ftplistparser.h
getenv.c
getinfo.c
getinfo.h
gopher.c
gopher.h
gtls.c
gtls.h
hash.c
hash.h
hmac.c
hostasyn.c
hostip.c
hostip.h
hostip4.c
hostip6.c
hostsyn.c
http.c
http.h
http_chunks.c
http_chunks.h
http_digest.c
http_digest.h
http_negotiate.c
http_negotiate.h
http_negotiate_sspi.c
http_proxy.c
http_proxy.h
idn_win32.c
if2ip.c
if2ip.h
imap.c
imap.h
inet_ntop.c
inet_ntop.h
inet_pton.c
inet_pton.h
krb4.c
krb4.h
krb5.c
ldap.c
libcurl.def
libcurl.plist
libcurl.rc
libcurl.vers.in
llist.c
llist.h
makefile.amiga
makefile.dj
md4.c
md5.c
memdebug.c
memdebug.h
mk-ca-bundle.pl
mk-ca-bundle.vbs
mprintf.c
msvcproj.foot
msvcproj.head
multi.c
multiif.h
netrc.c
netrc.h
non-ascii.c
non-ascii.h
nonblock.c
nonblock.h
nss.c
nssg.h
nwlib.c
nwos.c
openldap.c
parsedate.c
parsedate.h
pingpong.c
pingpong.h
polarssl.c
polarssl.h
pop3.c
pop3.h
progress.c
progress.h
qssl.c
qssl.h
rawstr.c
rawstr.h
rtsp.c
rtsp.h
security.c
select.c
select.h
sendf.c
sendf.h
setup-os400.h
setup.h
setup_once.h
share.c
share.h
slist.c
slist.h
smtp.c
smtp.h
sockaddr.h
socks.c
socks.h
socks_gssapi.c
socks_sspi.c
speedcheck.c
speedcheck.h
splay.c
splay.h
ssh.c
ssh.h
sslgen.c
sslgen.h
ssluse.c
ssluse.h
strdup.c
strdup.h
strequal.c
strequal.h
strerror.c
strerror.h
strtok.c
strtok.h
strtoofft.c
strtoofft.h
telnet.c
telnet.h
tftp.c
tftp.h
timeval.c
timeval.h
transfer.c
transfer.h
url.c
url.h
urldata.h
vc6libcurl.dsw
vc8proj.foot
vc8proj.head
version.c
warnless.c
warnless.h
wildcard.c
wildcard.h

README.ares

                                  _   _ ____  _
                              ___| | | |  _ \| |
                             / __| | | | |_) | |
                            | (__| |_| |  _ <| |___
                             \___|\___/|_| \_\_____|

          How To Build libcurl to Use c-ares For Asynch Name Resolves
          ===========================================================

c-ares:
  http://c-ares.haxx.se/

NOTE
  The latest libcurl version requires c-ares 1.6.0 or later.

  Once upon the time libcurl built fine with the "original" ares. That is no
  longer true. You need to use c-ares.

Build c-ares
============

1. unpack the c-ares archive
2. cd c-ares-dir
3. ./configure
4. make
5. make install

Build libcurl to use c-ares in the curl source tree
===================================================

1. name or symlink the c-ares source directory 'ares' in the curl source
   directory
2. ./configure --enable-ares

  Optionally, you can point out the c-ares install tree root with the the
  --enable-ares option.

3. make

Build libcurl to use an installed c-ares
========================================

1. ./configure --enable-ares=/path/to/ares/install
2. make

c-ares on win32
===============
(description brought by Dominick Meglio)

First I compiled c-ares. I changed the default C runtime library to be the
single-threaded rather than the multi-threaded (this seems to be required to
prevent linking errors later on). Then I simply build the areslib project (the
other projects adig/ahost seem to fail under MSVC).

Next was libcurl. I opened lib/config-win32.h and I added a:
 #define USE_ARES 1

Next thing I did was I added the path for the ares includes to the include
path, and the libares.lib to the libraries.

Lastly, I also changed libcurl to be single-threaded rather than
multi-threaded, again this was to prevent some duplicate symbol errors. I'm
not sure why I needed to change everything to single-threaded, but when I
didn't I got redefinition errors for several CRT functions (malloc, stricmp,
etc.)

I would have modified the MSVC++ project files, but I only have VC.NET and it
uses a different format than VC6.0 so I didn't want to go and change
everything and remove VC6.0 support from libcurl.
Something went wrong with that request. Please try again.