URL не может содержать управляющие символы

Я получаю Url can't contain special character.{весь url с номером мобильного и otp в нем} (найден хотя бы ' ') errror. Пожалуйста, помогите

'''

def send_otp(mobile , otp):

print("FUNCTION CALLED")
conn = http.client.HTTPSConnection("api.msg91.com")
authkey = settings.AUTH_KEY 
headers = { 'content-type': "application/json" }
url = "http://control.msg91.com/api/sendotp.php?otp="+otp+"&message="+"Your otp is "+otp +"&mobile="+mobile+"&authkey="+authkey+"&country=91"

conn.request("GET", url , headers=headers)
res = conn.getresponse()
data = res.read()
print(data)
return None

'''

Вернуться на верх