Making a Traffic Call
Procedure
-
Use the load balancer and make a TIBCO Mashery call using the
DNS name.
curl -v -H 'Host:api.example.com' 'http://LB/v1/api/patient/1234/qatest/testRequestInfo.php?api_key=3bvu8u3p8k5vjxmhrs6tnd6e' * About to connect() to x.x.0.15 port 80 (#0) * Trying x.x.0.15... * Connected to x.x.0.15 (x.x.0.15) port 80 (#0) > GET /v1/api/patient/1234/qatest/testRequestInfo.php?api_key=3bvu8u3p8k5vjxmhrs6tnd6e HTTP/1.1 > User-Agent: curl/7.29.0 > Accept: */* > Host:api.example.com > < HTTP/1.1 200 OK < X-Mashery-Responder: 666b4bc15de2 < Content-Type: text/plain; charset=UTF-8 < Date: Thu, 22 Nov 2018 22:07:15 GMT < X-Powered-By: PHP/5.3.3 < Content-Length: 640 < TIME NOW: 2018-11-22 14:07:15 ================================ Server Script: /internal/patients/1234/info/qatest/testRequestInfo.php Query params: api_key=3bvu8u3p8k5vjxmhrs6tnd6e Request Method: GET Request Protocol: HTTP/1.1 Requested URI: /internal/patients/1234/info/qatest/testRequestInfo.php?api_key=3bvu8u3p8k5vjxmhrs6tnd6e REQUEST HEADERS: Array ( [host] => content.mock.example.com [Accept] => */* [User-Agent] => Mashery Proxy [X-Original-User-Agent] => curl/7.29.0 [X-Forwarded-For] => x.x.0.7, x.x.248.122 [X-Forwarded-Port] => 80 [X-Forwarded-Proto] => http [Connection] => keep-alive )
Copyright © Cloud Software Group, Inc. All rights reserved.