Searched hist:"1 bff96064290b2e9594dcbeea967b3d8cc76e2b2" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/block/ |
H A D | curl.c | diff 1bff96064290b2e9594dcbeea967b3d8cc76e2b2 Thu Jan 21 08:19:20 CST 2016 Daniel P. Berrange <berrange@redhat.com> curl: add support for HTTP authentication parameters
If connecting to a web server which has authentication turned on, QEMU gets a 401 as curl has not been configured with any authentication credentials.
This adds 4 new parameters to the curl block driver options 'username', 'password-secret', 'proxy-username' and 'proxy-password-secret'. Passwords are provided using the recently added 'secret' object type
$QEMU \ -object secret,id=sec0,filename=/home/berrange/example.pw \ -object secret,id=sec1,filename=/home/berrange/proxy.pw \ -drive driver=http,url=http://example.com/some.img,\ username=dan,password-secret=sec0,\ proxy-username=dan,proxy-password-secret=sec1
Of course it is possible to use the same secret for both the proxy & server passwords if desired, or omit the proxy auth details, or the server auth details as required.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1453385961-10718-3-git-send-email-berrange@redhat.com Signed-off-by: Jeff Cody <jcody@redhat.com>
|