如何为json API请求的独立Wiremock启用HTTPS
我在我的服务器上用(本地主机)(端口-8080)配置了独立wire mock(2.21.0),尝试在本地访问URL时,它工作正常,但配置端点URL时出现错误。如何访问公共服务器上的本地主机URL?这方面我是新手如何为json API请求的独立Wiremock启用HTTPS,json,localhost,wiremock,Json,Localhost,Wiremock,我在我的服务器上用(本地主机)(端口-8080)配置了独立wire mock(2.21.0),尝试在本地访问URL时,它工作正常,但配置端点URL时出现错误。如何访问公共服务器上的本地主机URL?这方面我是新手 { "id" : "76ada7b0-49ae-4229-91c4-396a36f18e09", "request" : { "method" : "GET", "url" : "/api/mytest" }, "response" : {
{
"id" : "76ada7b0-49ae-4229-91c4-396a36f18e09",
"request" : {
"method" : "GET",
"url" : "/api/mytest"
},
"response" : {
"status": 200,
"headers" : {
"Content-Type" : "application/json",
"CorrelationId_T" : "1234321098890",
"ActivityName_T" : "VoucherRedeem",
"MsgType_T" : "RESPONSE",
"Priority_T": "1",
"Source" : "CRM",
"MessageId" : "subscriberId",
"Timestamp" : "2018-01-20T13:27:48.088Z",
"Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Accept-Encoding" : "gzip, deflate",
"Accept-Language" : "en-US,en;q=0.9",
"Cache-Control" : "no-cache",
"Host" : "localhost:8888",
"Pragma" : "no-cache",
"Proxy-Connection" : "keep-alive",
"Upgrade-Insecure-Requests" : "1",
"User-Agent" : "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" }
},
"uuid" : "76ada7b0-49ae-4229-91c4-396a36f18e09"
}
{
"id" : "76ada7b0-49ae-4229-91c4-396a36f18e09",
"request" : {
"method" : "GET",
"url" : "/api/mytest"
},
"response" : {
"status": 200,
"headers" : {
"Content-Type" : "application/json",
"CorrelationId_T" : "1234321098890",
"ActivityName_T" : "VoucherRedeem",
"MsgType_T" : "RESPONSE",
"Priority_T": "1",
"Source" : "CRM",
"MessageId" : "subscriberId",
"Timestamp" : "2018-01-20T13:27:48.088Z",
"Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Accept-Encoding" : "gzip, deflate",
"Accept-Language" : "en-US,en;q=0.9",
"Cache-Control" : "no-cache",
"Host" : "localhost:8888",
"Pragma" : "no-cache",
"Proxy-Connection" : "keep-alive",
"Upgrade-Insecure-Requests" : "1",
"User-Agent" : "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" }
},
"uuid" : "76ada7b0-49ae-4229-91c4-396a36f18e09"
}
通常,如果你知道错误是什么,会有很大帮助通常,如果你知道错误是什么,会有很大帮助