I have two urls:
url1 = \"http://127.0.0.1/test1/test2/test3/test5.xml\" url2 = \"../../test4/test6.xml\"
How can I get an absolute url for
For python 3.0+ the correct way to join urls is:
from urllib.parse import urljoin urljoin('https://10.66.0.200/', '/api/org') # output : 'https://10.66.0.200/api/org'