Skip to content

Instantly share code, notes, and snippets.

@chechuironman
Created August 19, 2020 10:34
Show Gist options
  • Save chechuironman/fa8629ed0655cdc0c7d76cf742ac0ed4 to your computer and use it in GitHub Desktop.
Save chechuironman/fa8629ed0655cdc0c7d76cf742ac0ed4 to your computer and use it in GitHub Desktop.
curl http://apigw-cloud-lab.apps.cp41apps.notesfromchechu.com/api/users/list_courses -vH @token.txt
* Trying 70.85.10.2...
* TCP_NODELAY set
* Connected to apigw-cloud-lab.apps.cp41apps.notesfromchechu.com (70.85.10.2) port 80 (#0)
> GET /api/users/list_courses HTTP/1.1
> Host: apigw-cloud-lab.apps.cp41apps.notesfromchechu.com
> User-Agent: curl/7.64.1
> Accept: */*
> Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlZmI4MGRkYWI3MjY5MDAxMzEyOGI1NiIsIm5hbWUiOiJ0ZXN0MTBAY2hlY2h1LmNvbSIsImlzcyI6ImNoZWNodSIsImF1ZCI6ImFwaWd3LWNsb3VkLWxhYiIsImlhdCI6MTU5NTAxMTQxMSwiZXhwIjoxNTk1MDExNzcxfQ.e28KhniWer0e0-kSZWn1YlStqPrK5Sbz6LoFdEcPjgOQtHVfsnysEBYokw6man0eJxfmPmTwXkYY6lxTUf_IVKA0Arbpzc0T8ycqgrsPzn-rxgld9aj0Ixg3FARvrM_2PC2N96HVbUFBPlrs1iFrWkhFlzrG9lzQhbU4WnNMLL_Ys5S8aPSKMIBwMr2MBvk2MaIoA_e21mxdSCXB9-ZZno9VNEeAeXxAgiIeAVH6OX6QptsForV6gEDPqDujow3tFmr05FIDuIHsc5fZCRZsk8qYuBbwdsG9uhPZWECspptIf84yWrYadpFA3Yew--ToIYEbjw9o9iWKTjKJ0D-L-Q
>
< HTTP/1.1 200 OK
< x-powered-by: Express
< access-control-allow-origin: *
< access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept
< content-type: application/json; charset=utf-8
< content-length: 1396
< etag: W/"574-lhXcK+eZXBvvg2wISQWruGwLiFU"
< date: Fri, 17 Jul 2020 18:44:03 GMT
< x-envoy-upstream-service-time: 23
< server: istio-envoy
< Set-Cookie: b0f700f09d2fbb2fed76addf03a3e984=91dbd6b291948175db2e8fcb86043819; path=/; HttpOnly
< Cache-control: private
<
* Connection #0 to host apigw-cloud-lab.apps.cp41apps.notesfromchechu.com left intact
[{"_id":"5eb675fe9fb1ef0012bf9b63","courseName":"Ka…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment