Skip to content

Instantly share code, notes, and snippets.

@zolotyh
Created November 27, 2014 08:13
Show Gist options
  • Save zolotyh/0ef982796bbf5b81e9ae to your computer and use it in GitHub Desktop.
Save zolotyh/0ef982796bbf5b81e9ae to your computer and use it in GitHub Desktop.
Remote Address:0.0.0.0:8080
Request URL:http://0.0.0.0:8080/rest/1.0/users
Request Method:POST
Status Code:401 Unauthorized
Request Headersview parsed
POST /rest/1.0/users HTTP/1.1
Host: 0.0.0.0:8080
Connection: keep-alive
Content-Length: 575
Accept: application/json, text/plain, */*
Origin: http://0.0.0.0:9000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36
Authorization: Bearer 99511653-b7a2-477a-bd86-28d42a5936d7
Content-Type: application/json;charset=UTF-8
Referer: http://0.0.0.0:9000/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8,ru;q=0.6
Request Payloadview source
{comment: null, password: "g4dyrpb9", salaryCalculationPeriod: null, firstName: "test", positionId: 1,…}
activationKey: null
birthday: null
blocked: false
comment: null
deleted: false
email: null
firstName: "test"
langKey: "ru"
lastName: null
login: "test"
password: "g4dyrpb9"
patronymic: null
phoneNumber: null
pin: "0621"
position: {id: 53, name: "Уборщица", description: "4353534534", demands: "Внимание к деталям. Чистоплотность.",…}
positionId: 1
salary: 500
salaryCalculationPeriod: null
Response Headersview source
Access-Control-Allow-Headers:accept, authorization, content-type
Access-Control-Allow-Methods:POST, GET, OPTIONS, DELETE, PUT
{"error":"unauthorized","error_description":"A user with the same name already exists"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment