Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何为json API请求的独立Wiremock启用HTTPS_Json_Localhost_Wiremock - Fatal编程技术网

如何为json API请求的独立Wiremock启用HTTPS

如何为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" : {

我在我的服务器上用(本地主机)(端口-8080)配置了独立wire mock(2.21.0),尝试在本地访问URL时,它工作正常,但配置端点URL时出现错误。如何访问公共服务器上的本地主机URL?这方面我是新手

{
 "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"

    }

通常,如果你知道错误是什么,会有很大帮助通常,如果你知道错误是什么,会有很大帮助