Code fix
https try
Optional https working