Re: [Spice-devel] allow config download with https

2013-07-26 Thread Dietmar Maurer
> > >I guess gio/gvfs should be able to > > > fetch files from http[s] (no libcurl please ;). Is it what you > > >(Dietmar) are looking for? > > > > Why gvfs? libcurl look much simpler. > > libcurl would look a bit alien in the rest of the code base, and if we ever > want to do the download async

Re: [Spice-devel] allow config download with https

2013-07-26 Thread Christophe Fergeau
On Fri, Jul 26, 2013 at 11:26:24AM +, Dietmar Maurer wrote: > > In my opinion, we could support running 'remote-viewer > > https://proxmox.example.com/myvm.vv', > > Well, but we need to handle basic auth. Couldn't an auth dialog be popped up when needed? > > >I guess gio/gvfs should be abl

Re: [Spice-devel] allow config download with https

2013-07-26 Thread Daniel P. Berrange
On Fri, Jul 26, 2013 at 11:26:24AM +, Dietmar Maurer wrote: > > In my opinion, we could support running 'remote-viewer > > https://proxmox.example.com/myvm.vv', > > Well, but we need to handle basic auth. > > >I guess gio/gvfs should be able to > > fetch files from http[s] (no libcurl please

Re: [Spice-devel] allow config download with https

2013-07-26 Thread Dietmar Maurer
> In my opinion, we could support running 'remote-viewer > https://proxmox.example.com/myvm.vv', Well, but we need to handle basic auth. >I guess gio/gvfs should be able to > fetch files from http[s] (no libcurl please ;). Is it what you (Dietmar) are > looking for? Why gvfs? libcurl look much

Re: [Spice-devel] allow config download with https

2013-07-26 Thread Christophe Fergeau
On Thu, Jul 25, 2013 at 06:56:20AM -0400, Marc-André Lureau wrote: > > Sure. Then I have to maintain/install a script and remote-viewer, and I want > > to avoid that. > > > > Why is the ovirt code included? I guess it is just convenient. > > I haven't used the ovirt support, but my impression wa

Re: [Spice-devel] allow config download with https

2013-07-25 Thread Dietmar Maurer
> > > Can't you write a simple wrapper/script to take care of that? > > > > Sure. Then I have to maintain/install a script and remote-viewer, and > > I want to avoid that. > > > > Why is the ovirt code included? I guess it is just convenient. > > I haven't used the ovirt support, but my impression

Re: [Spice-devel] allow config download with https

2013-07-25 Thread Marc-André Lureau
hi - Mensaje original - > > Since it's simply a data fetch from https, why does it needs to be part of > > virt- > > viewer? > > > > Can't you write a simple wrapper/script to take care of that? > > Sure. Then I have to maintain/install a script and remote-viewer, and I want > to avoid t

Re: [Spice-devel] allow config download with https

2013-07-25 Thread Dietmar Maurer
> Since it's simply a data fetch from https, why does it needs to be part of > virt- > viewer? > > Can't you write a simple wrapper/script to take care of that? Sure. Then I have to maintain/install a script and remote-viewer, and I want to avoid that. Why is the ovirt code included? I guess

Re: [Spice-devel] allow config download with https

2013-07-25 Thread Marc-André Lureau
Hi! - Mensaje original - > > Besides, is there an easy way to implement a https client using glib only? > > If > > not, is there a small library we can use for that purpose? - any > > suggestions? > > Answering myself, I think libcurl would be a good candidate - see: > > http://curl.haxx

Re: [Spice-devel] allow config download with https

2013-07-24 Thread Dietmar Maurer
> Besides, is there an easy way to implement a https client using glib only? If > not, is there a small library we can use for that purpose? - any suggestions? Answering myself, I think libcurl would be a good candidate - see: http://curl.haxx.se/libcurl/competitors.html But would you accept a p

[Spice-devel] allow config download with https

2013-07-24 Thread Dietmar Maurer
Currently, remote-viewer is able to connect to the ovirt REST API using something like: ovirt://x.y.z/a/b Unfortunately, this just works with ovirt, and not with our API (Proxmox VE). I think a better approach would be to allow download of setup file from https: https://x.y.z/a/b If that retu