Login/password for demo TDS: boss:bossadmin

Sometimes you might need to implement a complex redirection algorithm and one scheme is not enough. BossTDS allows you to chain your request between schemes. In other words, to redirect from one scheme to another ones.

We use a scheme named "Internal redirects". Open this link in another tab. To see all the scheme properties click on change button in the rightmost column.

In the scheme properties we set IN Url to self. All the traffic sent to http://demotds.bosstds.com/in/self/ will be redirected to one of OUTs of this scheme.
We set Default OUT Url to http://none.com. In this case this is just a placeholder value, it is never used as our OUTs will catch all the possible traffic.
Rest properties are left with default values.

We've added two OUT Urls. Click on OUT Urls button at the left of change button to see them all.

  • The first OUT is boss://demo2. We set its' Mode to Weight and Weight to 1.0.
  • The second OUT is boss://demo1. Again, we set its' Mode to Weight and Weight to 1.0.

As you can see, we use boss://schemeinurl format of Url. boss:// means that the url is an internal redirect to a scheme with IN Url equal to schemeinurl. In our case we have two such urls - boss://demo2 which redirects to a scheme named simple weighted and boss://demo1 which redirects to a scheme named simple sequential. These redirects are not HTTP redirects, but internal redirects which are faster.

Click a few times on this link (http://demotds.bosstds.com/in/self/) and see where and how often you will be redirected to. You will be redirected to one of OUTs of these two schemes: simple sequential,simple weighted.

www.megastock.ru www.paypal.com www.paxum.com
Hide dock Show dock Back to top
Loading