Skip to content

Instantly share code, notes, and snippets.

@s-bauer
Created June 16, 2018 13:01
Show Gist options
  • Save s-bauer/be56bee2598d600c805dcc1892cc6d30 to your computer and use it in GitHub Desktop.
Save s-bauer/be56bee2598d600c805dcc1892cc6d30 to your computer and use it in GitHub Desktop.
>>>>>>>>REQUEST
PUT /users/51 HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Content-Length: 69
Pragma: no-cache
Cache-Control: no-cache
Accept: application/json
x-auth-token: SAiojLPjbwjathzi-olYSp0Y1aDeDmxj21JPLe7_
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36
Origin: http://localhost:3000
Content-Type: application/json
Referer: http://localhost:3000/profile
Accept-Encoding: gzip, deflate, br
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
{"email":"EMAIL@de.de","firstname":"FIRSTNAME","lastname":"LASTNAME"}
>>>>>>>>RESPONSE
HTTP/1.1 200
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Access-Control-Allow-Origin: *
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Sat, 16 Jun 2018 13:00:09 GMT
{"state":"success","reason":["email_updated","name_updated","password_updated"],"user":{"id":51,"username":"simon","firstname":"FIRSTNAME","lastname":"LASTNAME","email":"EMAIL@de.de","emailVerified":false}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment