For example my browser URL is "http://localhost:8069/web?&debug=#id=2863&view_type=form&model=ir.attachment&action=582&active_id=17"
I tried following request object but didn't get url as I need
request.httprequest.host - localhost:8069
request.httprequest.host_url - http://localhost:8069/
request.httprequest.remote_addr - 127.0.0.1
request.httprequest.url - http://localhost:8069/web/dataset/call_button
request.httprequest.base_url - http://localhost:8069/web/dataset/call_button