Skip to content

Instantly share code, notes, and snippets.

@kpdyer
Last active August 29, 2015 14:19
Show Gist options
  • Save kpdyer/7084be638097fa0002d3 to your computer and use it in GitHub Desktop.
Save kpdyer/7084be638097fa0002d3 to your computer and use it in GitHub Desktop.
connection(tcp, 80):
start upstream NULL 1.0
upstream downstream http_request 1.0
downstream end http_response 1.0
action http_request:
client fte.send("^GET\ \/([a-zA-Z0-9\.\/]*) HTTP/1\.1\r\n\r\n$", 128)
action http_response:
server fte.send("^HTTP/1\.1\ 200 OK\r\nContent-Type:\ ([a-zA-Z0-9]+)\r\n\r\n\C*$", 128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment