1. 程式人生 > >CURL 命令行模式

CURL 命令行模式

linux curl

curl -X POST http://apidemo.test/api/register -H "Accept: application/json" -H "Content-Type: application/json" -d '{"name": "學院君", "email": "[email protected]", "password": "test123", "password_confirmation": "test123"}'
curl -X POST http://apidemo.test/api/register     -H "Accept: application/json"     -H "Content-Type: application/json"     -d '{"name": "學院君", "email": "[email protected]", "password": "test123", "password_confirmation": "test123"}'


CURL 命令行模式