I have any API. When i hit this API by jmeter, ir redirects to server A(do some processing), then redirects to B, and finally redirects to C( which is a HTML page).
In v
Just uncheck "Follow redirects" option in HTTP Request
See:
You will then need to emit yourselft the requests by Using A Regexp Extractor to extract from Header the URL and then call it.