Transfer data from or to a server, using one of the protocols: HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP or FILE. (To transfer multiple files use wget or FTP.)
Nov 01, 2016 The macOS Sierra 10.12.1 curl has some additional features that you’ll lose if you build –with-nghttp2. The missing ones are: AsynchDNS, GSS-API, Kerberos, and SPNEGO (as listed in the ‘curl –version’ output). To get HTTP/2 and the missing features too, use: $ brew install curl -with-nghttp2 -with-gssapi -with-c-ares. Oct 18, 2019 The easiest way to install a number of Unix style applications and open source software onto macOS Catalina, Mojave and earlier Sierra OS versions is via a package manager, unfortunately, macOS Catalina doesn’t come with one, but fortunately, some good folks care, they come in the form of Homebrew.
This page is a heavily abbreviated selection of the full options, for more detail including return codes, run man curl
curl is a powerful tool, please use it responsibly.
The return status is zero if no errors occur, non-zero otherwise.
Examples
Retrieve a web page and display in the terminal, use --include (-i) option to also display header information:
$ curl https://ss64.com
$ curl https://ss64.com -i Retrieve a web page and save to a file $ curl https://ss64.com/bash/ -o ss64.html Retrieve a web page, or its redirected target: $ curl ss64.co/bash/ $ curl ss64.co/bash/ --location
Retrieve a web page, passing a specific User-Agent HTTP header (some websites use this to sniff the browser used):
$ curl -A 'Mozilla FireFox(72.0)' https://example.com Curl For Mac Sierra Vista
Limit the rate of data transfer to 1 Kilobytes/sec:
$ curl https://ss64.com/bash/ --limit-rate 1k -o ss64.html Mac High Sierra
Download via a proxy server:
$ curl -x proxy.example.com:3128 https://ss64.com/bash/
“Let us curl, my lady. Let us throw and sweep between until the heavens themselves droop their jaws in wonder and envy” - Homer Simpson (Boy Meets Curl)
Related macOS commands:
ftp - Internet file transfer program.
HTTPie - http command for testing and debugging HTTP servers. Post to Tumblr via Bash using Curl. wget - non-interactive network downloader.
Copyright © 1999-2020 SS64.com Documentation
Some rights reserved
ProjectProtocolsReleases Version numberscurl toolWho and Why
libcurl
Get Help
Development
![]() Date: Thu, 22 Sep 2016 11:29:31 +0200 (CEST)
On Tue, 20 Sep 2016, Peter White (jawhite2) wrote:
> configure:4477:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang > -o conftest -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk/ > -miphoneos-version-min=9.0 -arch i386 -g -Os -DNDEBUG > -I/Volumes/local/trunk/dependencies/openssl/include > -Werror=partial-availability conftest.c >&5 > > configure:4481: $? = 0 > configure:4488: ./conftest > dyld: mach-o, but built for simulator (not macOS) > ./configure: line 4490: 71522 Abort trap: 6 ./conftest$ac_cv_exeext
For some reason, the dynamic run-time linker finds a non-native 'mach-o'
(whatever that is) when it tries to run the test program so the test program obviously fails.
I don't know xcode so I have no idea how this came to be, but you can probably
repeat the problem by rerunning that build command line and a similar test program and then you should be able to investigate how it comes the wrong lib gets to be used.
Received on 2016-09-22
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2020
Categories |