Unable to get rewrite working with port in the full path

Hi,

We are using tyk in out platform to proxy the API requests. We have GET and POST deployed in two different servers. So we want our requests to go to different servers based on methods for same slug.

Ex:

GET /test redirected to http://testget:3000/api/test
POST /test redirected to http://testpost:3000/api/test

This is working if we dont have port in the URL (EX: http://testpost/api/test) . but throwing 404 when the rewrite url contains a port.

I have read all the documentation and previous post with no luck. Any help would be greatly appreciated

Regards,
r.

It looks like this is a bug in the rewriter, can you raise an issue on our GitHub tracker?