Showing results for 
Search instead for 
Did you mean: 

Collected Tech Tips: TrafficScript examples

TrafficScript is the programming language that is built into the Traffic Manager.  With TrafficScript, you can create traffic management 'rules' to control the behaviour of Traffic Manager in a wide manner of ways, inspecting, modifying and routing any type of TCP or UDP traffic.


The language is a simple, procedural one - the style and syntax will be familiar to anyone who has used Perl, PHP, C, BASIC, etc. Its strength comes from its integration with Traffic Manager, allowing you to perform complex traffic management tasks simply, such as controlling traffic flow, reading and parsing HTTP requests and responses, and managing XML data.


This article contains a selection of simple technical tips to illustrate how to perform common tasks using TrafficScript.


TrafficScript Syntax



HTTP operations



XML processing



General examples



More information


For a more rigorous introduction to the TrafficScript language, please refer to the TrafficScript guide in the Product Documentation

Version history
Revision #:
2 of 2
Last update:
‎06-05-2019 03:44:AM
Updated by:
Labels (1)
Tags (1)