Skip to content

Instantly share code, notes, and snippets.

@vayam
Created December 23, 2013 21:09
Show Gist options
  • Save vayam/8104634 to your computer and use it in GitHub Desktop.
Save vayam/8104634 to your computer and use it in GitHub Desktop.
extract token query param
vcl_recv {
#Extrac query param token
set resp.http.token = regsub(req.url, "^.*(\?|&)token=([^&]*)(&{0,1}.*|$)", "\2");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment