[Spice-devel] allow config download with https

Dietmar Maurer dietmar at proxmox.com
Thu Jul 25 04:19:08 PDT 2013


> > > 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 was that it was
> performing authentication + lookup using some rest api.

yes, I want to do the same thing with libcurl

> > Also, I think using https and libcurl can completely replace the
> > libovirt dependency.
> 
> I guess you would need to handle the above, parsing the output, handling
> request state etc. Abstracting all this is precisely what libovirt is about.

You do not really need to parse anything, because you can directly request the
correct content type (Accept header). At least this works with the proxmox API,
and it should be really ease to implement in the ovirt API (if not already implemented).

Auth need to be done using http basic auth, and I guess most REST APIs will support that.

It would be really convenient to connect to a VM using:

# remote-viewer https://server/vms/vm1

or open a system console with:

# remote-viewer https://server/nodes/node1

(without requiring a web browser).


More information about the Spice-devel mailing list