Discuss / Java / win10 -d "***"用了双引号通过

win10 -d "***"用了双引号通过

Topic source

MacanRSG

#1 Created at ... [Delete] [Delete and Lock User]
C:\WINDOWS\system32>curl -v -H "Content-Type: application/json" -d "{\"email\":\"12345678@qq.com\",\"password\":\"12345678\"}" http://localhost:8080/api/signin
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 8080 (#0)
> POST /api/signin HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.55.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 49
>
* upload completely sent off: 49 out of 49 bytes
< HTTP/1.1 200
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Sat, 27 Mar 2021 07:40:14 GMT
<
{"user":{"id":0,"email":"12345678@qq.com","name":"sun","createdAt":1616682362842,"createdDateTime":"2021-03-25T22:26:02.842","imageUrl":"https://www.gravatar.com/avatar/cec98fdf26a761c046f512ed31c9462f"}}* Connection #0 to host localhost left intact

  • 1

Reply