Request Body:
POST /omnistore-pos-services1.0/rest/auth/authenticate HTTP/1.1
Host: app1760.uk.b-and-q.com:8183
Connection: keep-alive
Content-Length: 2
Accept: application/json, text/plain, */*
Origin: http://app1760.uk.b-and-q.com:8183
Authorization: Basic MTAxOjNjeGdqMnQrUXBtNmJwRUdENlh5T3c9PQ==
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://app1760.uk.b-and-q.com:8183/omnistore-pos-ui-InSS1.0/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
{}
Responsce body:
HTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate
Access-Control-Allow-Headers: origin, content-type, accept, authorization
X-XSS-Protection: 1; mode=block
Date: Fri, 02 Sep 2016 09:29:24 GMT
X-WebKit-CSP: default-src *
Connection: keep-alive
Strict-Transport-Security: max-age=16070400; includeSubDomains
Transfer-Encoding: chunked
Access-Control-Allow-Methods: POST
X-Powered-By: Undertow/1
Server: WildFly/9
X-Frame-Options: deny
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=utf-8
Access-Control-Max-Age: 60
{"AuthenticationDetails":{"Token":{"AccessToken":"eyJraWQiOiJrMSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJLSVRTX0Nhc3Rvcm9tYSIsImF1ZCI6IjEwLjEuMTAuMTc0IiwianRpIjoiWXE1blQ0YzVnRko1b29sYm44YXVvdyIsImlhdCI6MTQ3MjgwODU2NCwibmJmIjoxNDcyODA4NDQ0LCJzdWIiOiIxMDEiLCJjbGllbnRJUCI6IjEwLjEuMTAuMTc0In0.pBNLbmM0a7DzWYho1wIh9JqPP_99-l7libzS9PO9qH_4beO-KHvkNJZeH0v8qEKPVKxM-nb456l5Ld9AIUj9YywF4aGvQULcD1K6IcctH0V3qmW8Cr-2eGDrM3NxdfpeD12H2QWBYpeSAiM7n1Me6Znd3PCj_Po3BE4_CssxVaAX_tnbieKMlMjwLMGW_FljVcFc5XFmMbBsD8mUpMwVTXU3oFa_ArL200y2pEysX9QrtCN7fk6F2nDYnqvObEXnhJfCiXfFqCYAP7IN-ZTRCB8yHPg0m_yx2jRIySrOL9jQsakDMppoVXdFi-lQNSWc3DfA1CmBZ-82oAsHRCbU6A","TokenType":"JWT"},"IsCredentialValid":true}}
When I have replay the script I am getting Interal error. Can some one help me how to resolve the issue.
Replay Requesr:
POST /omnistore-pos-services1.0/rest/auth/authenticate HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Referer: http://app1760.uk.b-and-q.com:8183/omnistore-pos-ui-InSS1.0/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Accept: */*
Connection: Keep-Alive
Host: app1760.uk.b-and-q.com:8183
Content-Length: 2
{}
Replay responsce:
HTTP/1.1 500 Internal Server Error
Connection: keep-alive
Content-Type: text/html;charset=UTF-8
Content-Length: 80
Date: Fri, 02 Sep 2016 13:16:48 GMT
<html><head><title>Error</title></head><body>Internal Server Error</body></html>