Get target host in python post plugin

My target url for an api is an AWS Lambda URL. It requires an AWS authentication header. The target URL is required to generate a proper token. The host header in the post middleware is the tyk host not the target. I have gotten around the issue by putting the proper host value in config data. It would be better however if the target host was available to the plugin

Hi @ScottFN, great getting this to work. However, you could also use the proxy target_url from the plugin to also generate your token.