BuzzerBeater Forums

BBAPI Support > encoding username in login.aspx

encoding username in login.aspx

Set priority
Show messages by
This Post:
00
316252.1
Date: 09/26/2022 12:22:21
Le Cotiche
III.1
Overall Posts Rated:
772772
could someone help me understand how to properly encode the username in login.aspx?
i received notification of usernames with a "@" symbol that can't login

this is the relevant PHP code i'm using

$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookiefile");
curl_setopt($ch, CURLOPT_URL, "https://bbapi.buzzerbeater.com/login.aspx?login=".urlencode($login)."&code=".$code);

the resulting username string is something like "username%40gmail.com", but the login page always returns an error

this was tested on both my php app and directly on the browser (it's not my username but i assume the guy gave me the correct BBAPI code)

Last edited by mark_lenders at 09/26/2022 12:47:01