I have 4 type of url and need to get token.
type1 http://gettoken/index.php?action=test&token=aaaaa
type2 http://gettoken/index.php?action=test&token=aaaaa&login=admin
type3 http://gettoken/index.phpaction=test&login=admin&token=aaaaa&expires=3600
type4 http://gettoken/index.php?action=test&login=admin&expires=3600&token=aaaaa
and token length 5 character.