curl query request time with cookie

curl

curl -o /dev/null -s -w time_namelookup:"\t"%{time_namelookup}"\n"time_connect:"\t\t"%{time_connect}"\n"time_appconnect:"\t"%{time_appconnect}"\n"time_pretransfer:"\t"%{time_pretransfer}"\n"time_starttransfer:"\t"%{time_starttransfer}"\n"time_total:"\t\t"%{time_total}"\n"time_redirect:"\t\t"%{time_redirect}"\n" -X post http://shop-api-simulate.vchangyi.com/gw-shop/app/v1/new-template/page-config --header "content-type": "application/json" --header "token": "eyJpdiI6IjN5Y1NPSlloTHhWa1dSMFV1ZE1jcGc9PSIsInZhbHVlIjoiVVBkSFlhVXRMK3N1RnRQUXZJaWM4WCs2U0NuNGxhZkhlWHRiVGs5SGs5MCtFOUVWcVNcLzR0UHZnaktWWGdqRHNxM3VMVlErbEt6YTE1cmlSK05iS2RpOThqQmRtbkFXQ0ZUUHhtNUE2MHBhUmJ3d2I2SlNyQ1dTZmJPUm9MTjB3IiwibWFjIjoiMzYzM2UyNjg2NGU5OTY2YmFlYjkxYjIwNWExZTYwYmIyMmQ3MGM1OTg5ZDk0YTZjOTJmZGM0Mjc1YWJiOWMzOCJ9" --header    "app-version": "V1.7.8" --header    "enterprise-hash": "c65c5818581df666191809e1913a9d75" --data ' {"template_type": "index"}' 

time_namelookup

time_connect

time_appconnect

time_pretransfer

time_starttransfer

time_total

time_redirect

If you bring a cookie

--cookie "key=value"

-b c2.txt

c2.txt is the file of cookie value

Guess you like

Origin blog.csdn.net/wdd668/article/details/126512067