{
"id" : "1bd95e00-f0e7-3a82-a428-7d61b4579b33",
"request" : {
"url" : "/keepalive.html",
"method" : "GET"
},
"response" : {
"status" : 200,
"bodyFileName" : "response.xml",
"headers" : {
"date" : "Wed, 22 Feb 2017 13:13:24 GMT",
"Transfer-Encoding" : "chunked",
"server" : [ "Microsoft-IIS/6.0", "WebSphere Application Server/6.1" ],
"content-type" : "text/xml; charset=UTF-8",
"content-language" : "en-GB"
}
},
"uuid" : "1bd95e00-f0e7-3a82-a428-7d61b4579b33"
}
Response:
<?xml version="1.0"?>
<KeepAlive>
</KeepAlive>
I have removed few information like the exact url and the body content of the response xml file as they are restricted info.
So when I launch the application in my personal machine, wiremock captures the request as below and it matches the response as well;
Request received:
127.0.0.1 - GET /keepalive.html (via browser proxy request)
User-Agent: [Java/1.8.0_101]
Host: [server:port]
Accept: [text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2]
Proxy-Connection: [keep-alive]
But when I do the same from a cloud machine (Azure) it doesn't capture the request at all. As it is not capturing the request it is not using the response.