curl
选项,可以多次使用:
Headers for curl
are set with the -H
option, which can be used multiple times:
curl -H "Header-1: Value" -H "Header-2: Value" http://example.com
注意 PHP有一个 curl库。所以你不必使用 exec()
。
Note: If installed, PHP has a curl library. So you don't have to use exec()
.