helper function to request a user login token
get_prelogin_token(url, user)
url
a URL body
user
a username of a registered user
a token string