現在のURLの取得

2022/08/07

Python3.6

import os
pass = os.environ['REQUEST_URI']
domain = os.environ['HTTP_HOST']
url = 'https://'+domain+pass