Skip to content

Instantly share code, notes, and snippets.

@kmikulski kmikulski/post.sh
Created Dec 5, 2018

Embed
What would you like to do?
the description for this gist
jakub@jakub-desktop:~$ curl 'http://localhost:9000/users' -H 'Pragma: no-cache' -H 'Origin: http://localhost:3000'
-H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,pl;q=0.7,la;q=0.6'
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/70.0.3538.77 Chrome/70.0.3538.77 Safari/537.36'
-H 'Accept: */*' -H 'Cache-Control: no-cache'
-H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJOZ045MnRlSW9iaUIwYXlBSm9mdkhQaW1oX2w2RUVJbUF0SDhXSi1hQnVjIn0.
eyJqdGkiOiI1YjAwODQ4Yi05MjljLTQ3ZDEtOTI1My1lYmRiOTcwNWVjNjQiLCJleHAiOjE1NDI4MzQzNzcsIm5iZiI6MCwiaWF0IjoxNTQyODM0MDc3LCJpc3MiOiJodHRwOi8vbG
9jYWxob3N0OjgwODAvYXV0aC9yZWFsbXMvTXlEZW1vIiwiYXVkIjoibXktcmVhY3QtY2xpZW50Iiwic3ViIjoiYjY2Y2YyMTctYzAzMi00YjBjLWE3YzctYWViMjZjNGIyOTMxIiwi
dHlwIjoiQmVhcmVyIiwiYXpwIjoibXktcmVhY3QtY2xpZW50Iiwibm9uY2UiOiI3ZjYzNTFkOC03MzUxLTQwNWEtODBmZi02ZGNmNGNjZmJlNjgiLCJhdXRoX3RpbWUiOjE1NDI4Mz
IyMjAsInNlc3Npb25fc3RhdGUiOiJmN2Q3NTRhNy04OTk4LTQ3NDItOWMxMy0yYWY1YzZjZTJlMGMiLCJhY3IiOiIwIiwiYWxsb3dlZC1vcmlnaW5zIjpbImh0dHA6Ly9sb2NhbGhv
c3Q6MzAwMCJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidW1hX2F1dGhvcml6YXRpb24iXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS
1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJuYW1lIjoiSmFrdWIgTWlrdWxza2kiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJqb2huIiwi
Z2l2ZW5fbmFtZSI6Ikpha3ViIiwiZmFtaWx5X25hbWUiOiJNaWt1bHNraSIsImVtYWlsIjoidGVzdEBleGFtcGxlLmNvbSJ9.WtIfvDq7IASbDOH38aq5iXDowLmn68RlKnquzu4RH
jkkazJnXMXYBvBiFW16auF1sVVf0VGT21XUmxDMHCa-T6W3VakCKIhbx5IxQsbrBBDbe8ELgTQvsK5dzdrw0xT8LfzpxUGInXcPcua3o1VTBW4oBbPMRnsQ4T_Y5Yc-r4c1kiNe0RJ
4faDXikvEJUKfPleoOC6hV3-O3_uXQst29XKL6E-7PzEnB9yPgCcspxYX43X3VGYGo1slk896BL_QHKc7Y_u217ihRUx-ZQhOidF3RTlGqttqwHTGwn0hcOrzWDJS7zFsZ_YYpiMbG
DL-b7FZNmQyotgs27FjzTi_Pw' -H 'Connection: keep-alive' -H 'Referer: http://localhost:3000/secured' --compressed
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, X-Requested-With
Server: akka-http/10.1.4
Date: Wed, 21 Nov 2018 21:01:31 GMT
Content-Type: application/json
Content-Length: 135
{"users":[{"name":"Grzegorz","age":31,"countryOfResidence":"Poland"},{"name":"Thomas","age":28,"countryOfResidence":"United Kingdom"}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.