rpeg — 2013-12-29T14:15:31-05:00 — #1
I'm trying to better understand angular.js but first I need to understand REST which requires that I better understand HTTP and every tutorial I've read recommends cURL. So now I'm trying to figure out how to install cURL on OSX and I've only used terminal a few times (I'm actually more comfortable with DOS).
I'm currently referring to these instructions but - http://curl.haxx.se/docs/install.html - but it's rather vague and assumes a lot of details.
Any other suggestions on how to install cURL?
attacker — 2013-12-29T22:47:15-05:00 — #2
What happens when you just open a terminal and just execute "curl -V" or just "curl" ?
dklynn — 2013-12-30T17:55:17-05:00 — #3
cURL is a part of PHP (http://www.php.net/manual/en/book.curl.php) so you'll need to install a test server so you can use this version of cURL.
wwb_99 — 2014-01-01T11:53:31-05:00 — #4
No, curl isn't a part of php it is a GNU utility. PHP has a php-curl module though.
As for installation you probably don't want to install from source in general -- package management is pretty vastly superior these days. Not that you need to -- it is on macs by default, or at least was on the one I had handy with mavericks running on it.
All that said, if you want a command line http client I would use httpie -- https://github.com/jkbr/httpie, it is vastly superior.