adapt local path in platform:iOS  android
format server url

if user’s input url have not “http” at start, add it.
and  “/“ to end too.