How to install cURL on OSX with brew How can i get the newerst version of cURL instead of the old 7.24 that Apple provide.

user:~ kevinsimper$ curl --version
curl 7.31.0 (x86_64-apple-darwin12.4.0) libcurl/7.31.0 OpenSSL/0.9.8x zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp 
Features: IPv6 Largefile NTLM NTLM_WB SSL libz 


When i install with Brew I am notified that it is a keg-only and if i do

brew link curl --force


the version is stil 7.24, but the protocols have been updated.

Kuser:~ kevinsimper$ curl --version
curl 7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz 
user:~ kevinsimper$ which curl
/usr/bin/curl


If i then delete the "apple" curl, the function is not executable.

user:~ kevinsimper$ curl --version
curl 7.31.0 (x86_64-apple-darwin12.4.0) libcurl/7.31.0 OpenSSL/0.9.8x zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp 
Features: IPv6 Largefile NTLM NTLM_WB SSL libz 
user:~ kevinsimper$ brew install postgresql
==&gt; Installing postgresql dependency: ossp-uuid
==&gt; Downloading ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz
Error: /usr/bin/curl is not executable
Add export PATH=/usr/local/bin:$PATH to your .bashrc for example to use the bin installed with Homebrew.