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"}'


猜你喜欢

转载自blog.51cto.com/phpme/2105684