CURL & Fetch
https://kigiri.github.io/fetch/
https://stackoverflow.com/questions/31039629/convert-curl-get-to-javascript-fetch
Chrome DevTool
http://10.1.5.202/deploy/http/sign/email
shell
$ curl 'http://10.1.5.202/deploy/http/sign/email' -H 'Origin: http://10.1.5.202' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36' -H 'Content-Type: application/json; charset=utf-8' -H 'Accept: */*' -H 'Referer: http://10.1.5.202/platform/publish/svn.html' -H 'Cookie: left=stockfast01,stockfast11; JSESSIONID=66870b0c-c7e3-48c0-bd9f-8a126766264f; access_token_test=eyJhbGciOiJIUzI1NiJ9.eyJybclIjoiQWRtaW4iLCJleHBpcmVkIjoxNTQ0NjY2OTM0NDk3LCJhdXRoIjpbInB1Ymxpc2giLCJvcGVyYXRpb24iLCJhY2NvdW50Il0sInVzZXJfbmFtZSI6ImFkbWluIiwidG9rZW5fa2V5IjoiYWNjZXNzX3Rva2VuX3Rlc3QiLCJlbWFpbCI6Imhvbmdra0BnaWxkYXRhLmNvbSJ9.i354Y10Dq3njidBrWlww9QQXUTSYrWaCU9nLFepVDr4' -H 'Connection: keep-alive' -H 'Sec-Metadata: destination="", site=same-origin' --data-binary '{"email":"hkk@xgqfrms.xyz"}' --compressed
cmd
$ curl "http://10.1.5.202/deploy/http/sign/email" -H "Origin: http://10.1.5.202" -H "Accept-Encoding: gzip, deflate" -H "Accept-Language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36" -H "Content-Type: application/json; charset=utf-8" -H "Accept: */*" -H "Referer: http://10.1.5.202/platform/publish/svn.html" -H "Cookie: left=stockfast01,stockfast11; JSESSIONID=66870b0c-c7e3-48c0-bd9f-8a126766264f; access_token_test=eyJhbGciOiJIUzI1NiJ9.eyJybxxlIjoiQWRtaW4iLCJleHBpcmVkIjoxNTQ0NjY2OTM0NDk3LCJhdXRoIjpbInB1Ymxpc2giLCJvcGVyYXRpb24iLCJhY2NvdW50Il0sInVzZXJfbmFtZSI6ImFkbWluIiwidG9rZW5fa2V5IjoiYWNjZXNzX3Rva2VuX3Rlc3QiLCJlbWFpbCI6Imhvbmdra0BnaWxkYXRhLmNvbSJ9.i354Y10Dq3njidBrWlww9QQXUTSYrWaCU9nLFepVDr4" -H "Connection: keep-alive" -H "Sec-Metadata: destination=^^"^^", site=same-origin" --data-binary "^{^^"email^^":^^"hkk^@xgqfrms.xyz^^"^}" --compressed
refs
https://curl.haxx.se/
https://curl.haxx.se/book.html
https://legacy.gitbook.com/download/pdf/book/bagder/everything-curl
https://github.com/bagder/everything-curl
curl playground
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!