Skip to content

Instantly share code, notes, and snippets.

@chechuironman
Created August 19, 2020 10:35
Show Gist options
  • Save chechuironman/5a8e8f4809c3c230fc7d4ab4df4e8fb2 to your computer and use it in GitHub Desktop.
Save chechuironman/5a8e8f4809c3c230fc7d4ab4df4e8fb2 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.eyJpZCI6IjVlZmI4MGRkYWI3MjY5MDAxMzEyOGI1NiIsIm5hbWUiOiJ0ZXN0MTBAY2hlY2h1LmNvbSIsImlzcyI6ImNoZWNodTEiLCJhdWQiOiJhcGlndy1jbG91ZC1sYWIiLCJpYXQiOjE1OTUwMTE1OTUsImV4cCI6MTU5NTAxMTk1NX0.GOjMh4IDDFK_WDx7J1R2cBt_z-hRDlXgSAJGSvpDsuP7xNNW8c4NA08ql7wk337pPBKL_kGrbuyQgz2t0py9akyU8opcm1a37w2LZD1KVjNFPMc9IID53m5bog8qZOfNWSNNEJMVl1mtGXNsBjPHAqNixf806D6jiw-6yFQ99vMNI5qVMCM7MYkUXdjDijDIBxSTN7dRalZMMjr2gF8heTEqgnU39LNVULfg2LIeiosTKiAnERYmzo5yqYRMtd-hFQ4D8egeM7M2pKzxwBgt_lRK61eV38k8FGTJlmOtIOrQC7y2p_PlDgydJNKv9ylxaN7sayfCj7DX8n7KOjbZeg
>
< HTTP/1.1 401 Unauthorized
< content-length: 29
< content-type: text/plain
< date: Fri, 17 Jul 2020 18:48:18 GMT
< server: istio-envoy
< x-envoy-upstream-service-time: 2
< Set-Cookie: b0f700f09d2fbb2fed76addf03a3e984=91dbd6b291948175db2e8fcb86043819; path=/; HttpOnly
<
* Connection #0 to host apigw-cloud-lab.apps.cp41apps.notesfromchechu.com left intact
Origin authentication failed.* Closing connection 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment