TransRead: support URLs with user name and password
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 8 Mar 2013 08:35:52 +0000 (10:35 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 8 Mar 2013 12:57:04 +0000 (14:57 +0200)
commit411dd15baece4712b457ef10d131ab4096c98f33
tree03d287091a3e9fb9a94d570b2e7c7b8b1480228d
parent996780afc0045302d6228608f2d687981f8693b3
TransRead: support URLs with user name and password

Markus Lehtonen reported that bmaptool does not support URLs which contain user
name and password, e.g., https://marquiz:qwerty@server.com/nice.image.bz2.

This patch adds the corresponding support. What we do is we first parse the URL
and try to figure out if it contains user name and password, and if it does,
open the URL with a specially build opener which supports authentication.

Change-Id: I517eb9ffd21ff5de6e9deac4c0cacffe82e53ad5
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptools/TransRead.py