title: Get current URL from browser using python
body: <p>I am running an HTTP server which serves a bitmap according to the dimensions in the browser URL i.e <code>localhost://image_x120_y30.bmp</code>. My server is running in infinite loop and I want to get the URL any time user requests for BITMAP, and at the end I can extract the image dimensions from the URL.  </p>
  
  <p>The question asked here:</p>
  
  <p><a href="https://stackoverflow.com/questions/14468862/how-to-get-current-url-in-python-web-page">How to get current URL in python web page?</a> </p>
  
  <p>does not address my problem as I am running in infinite loop and I want to keep on getting the current URL so I can deliver the requested BITMAP to the user.</p>