ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£
------=_NextPart_000_0091_01CE63A7.20682EF0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hi, Jarod.W:
Thanks for your demo, but I think you miss two fucntinos like =
this:
=20
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
=20
the following new demo code on my ubuntu is work well:
#include <stdio.h>
#include <curl/curl.h>
=20
int main(void)
{
CURL *curl;
CURLcode res;
=20
curl_global_init(CURL_GLOBAL_DEFAULT);
=20
curl =3D curl_easy_init();
if(curl)
{
curl_easy_setopt(curl, CURLOPT_URL, =
"https://192.168.1.201/api/");
curl_easy_setopt(curl, CURLOPT_USERPWD, =
"admin@internal:111111");
curl_easy_setopt(curl, CURLOPT_CAINFO,"/tmp/ca.crt");
=20
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
=20
res =3D curl_easy_perform(curl);
=20
if(res !=3D CURLE_OK)
fprintf(stderr, "curl_easy_perform() failed: %s\n",
curl_easy_strerror(res));
=20
curl_easy_cleanup(curl);
}
=20
curl_global_cleanup();
=20
return 0;
}
=20
when I add this two functions , it works well for admin@internal
but can=E2=80=99t work for user portal, I check the information sent by=20
admin@internal and user portal, the only difference is Filter,
admin@internal is Filter:False, the user portal is Filter:True.
=20
How can I use curl_easy_setopt to set Filter .
=20
Thanks
Leaboy
=20
From: Jarod. w [mailto:work.iec23801@gmail.com]=20
Sent: Wednesday, June 05, 2013 11:35 AM
To: wlbleaboy@126
Cc: engine-devel(a)ovirt.org
Subject: Re: Re: [Engine-devel] ovirt-engine-sdk with C
=20
2013/6/5 wlbleaboy@126 <wlbleaboy(a)126.com>
Hi, Jarod. W:
I got your demo, and a build libcurl, but I can=E2=80=99t get =
any info
from https://{ovirt-engine }/api .
my code like this:
Please try to run the below command:
--
curl
https://YOURIP/api -u YOURNAME:YOURPASSWD --cacert /root/ca.crt
--
After, please parse the result.
ps, I run the program on centos 6.4, and it works.
thanks.
=20
int main(void)
{
CURL *curl;
CURLcode res;
curl =3D curl_easy_init();
=20
if (curl)
{
printf("enter....\n");
curl_easy_setopt(curl, CURLOPT_URL, =
"https://192.168.1.201/api");
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, callback_func);
curl_easy_setopt(curl, CURLOPT_USERPWD, =
"admin@internal:111111");
curl_easy_setopt(curl, CURLOPT_CAINFO,"/tmp/ca.crt");
curl_easy_perform(curl);
printf("exit.....\n");
=20
curl_easy_cleanup(curl);
}
=20
return 0;
}
=20
And when I run it, just outpu :
enter....
exit.....
=20
I got the libcurl from
http://curl.haxx.se/download.html and chosed =
curl-7.30.0.tar.gz =
<
http://curl.haxx.se/download.html%20and%20chosed%20curl-7.30.0.tar.gz>=20
and I use make and make install without any other options . I just guess =
maybe it need
other SSL library supported, but I don=E2=80=99t know how and which .
=20
=E5=8F=91=E4=BB=B6=E4=BA=BA: Jarod. w [mailto:work.iec23801@gmail.com]=20
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2013=E5=B9=B46=E6=9C=884=E6=97=A5 =
18:14
=E6=94=B6=E4=BB=B6=E4=BA=BA: wlbleaboy@126
=E6=8A=84=E9=80=81: engine-devel(a)ovirt.org
=E4=B8=BB=E9=A2=98: Re: =E7=AD=94=E5=A4=8D: [Engine-devel] =
ovirt-engine-sdk with C
=20
2013/6/4 wlbleaboy@126 <wlbleaboy(a)126.com>
Hi, Jarod. W:
Yes, I just want to use c to invoke ovirt engine RestAPI,
Just get vm=E2=80=99s id, host, port, secur-port, and ticket,
How can I use libcurl to connect https, could give me
a simple demo to connect https://{ovirt-engine}/api =
<https://%7bovirt-engine%7d/api> with=20
--cafile, the ca.crt I get from http://{ovirt-engine}/ca.crt =
<http://%7bovirt-engine%7d/ca.crt>=20
Please download the demo from the above url:
https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c
=20
=20
=20
=E5=8F=91=E4=BB=B6=E4=BA=BA: Jarod. w [mailto:work.iec23801@gmail.com]=20
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2013=E5=B9=B45=E6=9C=8814=E6=97=A5 =
10:27
=E6=94=B6=E4=BB=B6=E4=BA=BA: leaboy@126
=E6=8A=84=E9=80=81: engine-devel(a)ovirt.org
=E4=B8=BB=E9=A2=98: Re: [Engine-devel] ovirt-engine-sdk with C
=20
2013/5/13 leaboy@126 <wlbleaboy(a)126.com>
Hi=EF=BC=8CAll
I felt oivrt-engine-sdk coded with Python is slowly to connect
ovirt-engine and console vm when a user have many vms, So, I just
want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk
with C to connect overt-engine and console vm, would anyone give=20
me some suggestion.
Do you want to use c to invoke ovirt engine RestAPI, right?
If yes, you can use libcurl to do the thing, and it'll make you happy.
=20
=20
Now, the problem is how can I connect to ovit-engine with C, =
and
how can I get some information of vms, and how ovirrt-engine can=20
respond my action(start,stop, .eg)
Agree with Michael Pasternak.
You should parse your code into the mail list, or someone can't help
you.
=20
=20
=
Leaboy@beijing
Thinks
_______________________________________________
Engine-devel mailing list
Engine-devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel
--=20
---
Best Regards
Jarod.W
--=20
---
Best Regards
Jarod.W
--=20
---
Best Regards
Jarod.W
------=_NextPart_000_0091_01CE63A7.20682EF0
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:=E5=AE=8B=E4=BD=93;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@=E5=AE=8B=E4=BD=93";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:=E5=AE=8B=E4=BD=93;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:=E5=AE=8B=E4=BD=93;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DZH-CN link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi, Jarod.W:<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Thanks =
for your demo, but I think you miss two
fucntinos like this:<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:21.0pt'><span lang=3DEN-US
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p> </o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:21.0pt'><b><span
lang=3DEN-US
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>curl_easy_setopt(curl,
CURLOPT_SSL_VERIFYPEER, 0L);<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 =
=C2=A0=C2=A0=C2=A0=C2=A0 curl_easy_setopt(curl,
CURLOPT_SSL_VERIFYHOST, 0L);</span></b><span lang=3DEN-US =
style=3D'font-size:10.5pt;
font-family:"Calibri","sans-serif";color:#1F497D'
<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>the following new demo code on my ubuntu is work =
well:<o:p></o:p></span></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>#include =
<stdio.h><o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>#include =
<curl/curl.h><o:p></o:p></span></b></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>int =
main(void)<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>{<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 CURL
=
*curl;<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0
CURLcode =
res;<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0
curl_global_init(CURL_GLOBAL_DEFAULT);<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 curl
=3D =
curl_easy_init();<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 =
if(curl)<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 =
{<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 curl_easy_setopt(curl,
CURLOPT_URL, =
"https://192.168.1.201/api/");<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 curl_easy_setopt(curl,
CURLOPT_USERPWD, =
"admin@internal:111111");<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 curl_easy_setopt(curl,
CURLOPT_CAINFO,"/tmp/ca.crt");<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 curl_easy_setopt(curl,
CURLOPT_SSL_VERIFYPEER, 0L);<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 curl_easy_setopt(curl,
CURLOPT_SSL_VERIFYHOST, 0L);<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 res =3D
curl_easy_perform(curl);<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 if(res !=3D CURLE_OK)<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fprintf(stderr,
"curl_easy_perform() failed:
%s\n",<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0
curl_easy_strerror(res));<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 curl_easy_cleanup(curl);<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 =
}<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 =
curl_global_cleanup();<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 return
=
0;<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif";color:#1F497D'>}<o:p></o:p></span></b></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>when I add this two functions , it works well for =
admin@internal<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>but can=E2=80=99t work for user portal, I check the =
information sent by <o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>admin@internal and user portal, the only difference is =
Filter,<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>admin@internal is Filter:False, the user portal is =
Filter:True.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>How can I use curl_easy_setopt to set Filter =
.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 Thanks<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
Leaboy<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0cm 0cm 0cm'>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span
lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Jarod. w =
[mailto:work.iec23801@gmail.com] <br>
<b>Sent:</b> Wednesday, June 05, 2013 11:35 AM<br>
<b>To:</b> wlbleaboy@126<br>
<b>Cc:</b> engine-devel(a)ovirt.org<br>
<b>Subject:</b> Re: Re: [Engine-devel] ovirt-engine-sdk with =
C<o:p></o:p></span></p>
</div>
<p class=3DMsoNormal><span
lang=3DEN-US><o:p> </o:p></span></p>
<div>
<p class=3DMsoNormal><span lang=3DEN-US>2013/6/5 wlbleaboy@126 <<a
href=3D"mailto:wlbleaboy@126.com" =
target=3D"_blank">wlbleaboy@126.com</a>><o:p></o:p></span></p>
<div>
<div>
<blockquote style=3D'border:none;border-left:solid #CCCCCC =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi, Jarod. W:</span><span =
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>
I got =
your
demo, and a build libcurl, but I can=E2=80=99t get any info</span><span =
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>from https://{ovirt-engine }/api .</span><span =
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>my code like this:</span><span =
lang=3DEN-US
<o:p></o:p></span></p>
</div>
</div>
</blockquote>
<div>
<p class=3DMsoNormal><span lang=3DEN-US>Please try to run the below =
command:<br>
--<br>
curl <a href=3D"https://YOURIP/api">https://YOURIP/api</a> -u =
YOURNAME:YOURPASSWD
--cacert /root/ca.crt<br>
--<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span =
lang=3DEN-US>After, please
parse the result.<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span =
lang=3DEN-US>ps, I run the
program on centos 6.4, and it works.<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal><span lang=3DEN-US>thanks.<br>
<o:p></o:p></span></p>
</div>
<blockquote style=3D'border:none;border-left:solid #CCCCCC =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>int
main(void)</span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>{</span><sp=
an
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
CURL *curl;</span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
CURLcode res;</span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
curl =3D curl_easy_init();</span><span =
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'> </spa=
n><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
if (curl)</span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
{</span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
printf("enter....\n");</span><span =
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
curl_easy_setopt(curl, CURLOPT_URL, "<b><a =
href=3D"https://192.168.1.201/api"
target=3D"_blank">https://192.168.1.201/api</a></b>");</span><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, =
callback_func);</span><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
curl_easy_setopt(curl, CURLOPT_USERPWD, =
"<b>admin@internal:111111</b>");</span><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
curl_easy_setopt(curl, =
CURLOPT_CAINFO,"<b>/tmp/ca.crt</b>");</span><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
curl_easy_perform(curl);</span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
printf("exit.....\n");</span><span =
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'> </spa=
n><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
curl_easy_cleanup(curl);</span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
}</span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'> </spa=
n><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  =
;
return 0;</span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>}</span><sp=
an
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'> </spa=
n><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>And
when
I run it, just outpu :</span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>enter....</=
span></b><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>exit.....</=
span></b><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'> </spa=
n><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>I
got
the libcurl from <a
href=3D"http://curl.haxx.se/download.html%20and%20chosed%20curl-7.30.0.ta=
r.gz"
target=3D"_blank">http://curl.haxx.se/download.html and chosed =
curl-7.30.0.tar.gz</a></span><span
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>and
I
use make and make install without any other options . I just guess maybe =
it
need</span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>other
SSL
library supported, but I don=E2=80=99t know how and which .</span><span =
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><span lang=3DEN-US
<o:p></o:p></span></p>
<div style=3D'border:none;border-top:solid windowtext =
1.0pt;padding:3.0pt 0cm 0cm 0cm;
border-color:-moz-use-text-color -moz-use-text-color'>
<div>
<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt'>=E5=8F=91=E4=BB=B6=E4=BA=BA<span =
lang=3DEN-US>:</span></span></b><span
lang=3DEN-US style=3D'font-size:10.0pt'> Jarod. w [mailto:<a
href=3D"mailto:work.iec23801@gmail.com" =
target=3D"_blank">work.iec23801(a)gmail.com</a>]
</span><span lang=3DEN-US
<o:p></o:p></span></p>
</div>
<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt'>=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4<span =
lang=3DEN-US>:</span></span></b><span
lang=3DEN-US style=3D'font-size:10.0pt'> 2013</span><span =
style=3D'font-size:10.0pt'>=E5=B9=B4<span
lang=3DEN-US>6</span>=E6=9C=88<span
lang=3DEN-US>4</span>=E6=97=A5<span =
lang=3DEN-US> 18:14<br>
</span><b>=E6=94=B6=E4=BB=B6=E4=BA=BA<span =
lang=3DEN-US>:</span></b><span lang=3DEN-US> wlbleaboy@126<br>
</span><b>=E6=8A=84=E9=80=81<span
lang=3DEN-US>:</span></b><span =
lang=3DEN-US> <a
href=3D"mailto:engine-devel@ovirt.org" =
target=3D"_blank">engine-devel(a)ovirt.org</a><br>
</span><b>=E4=B8=BB=E9=A2=98<span
lang=3DEN-US>:</span></b><span =
lang=3DEN-US> Re: </span>=E7=AD=94=E5=A4=8D<span
lang=3DEN-US>: [Engine-devel] ovirt-engine-sdk with
C</span></span><span
lang=3DEN-US
<o:p></o:p></span></p>
</div>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> <o:p></o:p></span></p>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>2013/6/4 wlbleaboy@126 <<a =
href=3D"mailto:wlbleaboy@126.com"
target=3D"_blank">wlbleaboy@126.com</a>><o:p></o:p></span></p>
<div>
<div>
<blockquote style=3D'border:none;border-left:solid windowtext =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color =
rgb(204,204,204)'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US style=3D'font-size:10.0pt'>Hi, Jarod. W:</span><span =
lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US style=3D'font-size:10.0pt'> Yes, I
just =
want to </span><span
lang=3DEN-US>use c to invoke ovirt engine
RestAPI,<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>Just get vm</span>=E2=80=99<span lang=3DEN-US>s id, host, =
port, secur-port,
and ticket,<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> How can I use libcurl to connect https, =
could
give me<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>a simple demo to connect <a =
href=3D"https://%7bovirt-engine%7d/api"
target=3D"_blank">https://{ovirt-engine}/api</a> with =
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>--cafile, the ca.crt I get from <a
href=3D"http://%7bovirt-engine%7d/ca.crt" =
target=3D"_blank">http://{ovirt-engine}/ca.crt</a
<o:p></o:p></span></p>
</div>
</div>
</blockquote>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>Please download the demo from the above url:<br>
<a =
href=3D"https://github.com/jarod-w/hglibraries/blob/master/demo/rest...
"
target=3D"_blank">https://github.com/jarod-w/hglibraries/blo...
/restapi.c</a><br>
<o:p></o:p></span></p>
</div>
<blockquote style=3D'border:none;border-left:solid windowtext =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color =
rgb(204,204,204)'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><span lang=3DEN-US
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><span lang=3DEN-US
<o:p></o:p></span></p>
<div style=3D'border:none;border-top:solid windowtext =
1.0pt;padding:3.0pt 0cm 0cm 0cm;
border-color:-moz-use-text-color'>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style=3D'font-size:10.0pt'>=E5=8F=91=E4=BB=B6=E4=BA=BA<span =
lang=3DEN-US>:</span></span></b><span
lang=3DEN-US style=3D'font-size:10.0pt'> Jarod. w [mailto:<a
href=3D"mailto:work.iec23801@gmail.com" =
target=3D"_blank">work.iec23801(a)gmail.com</a>]
<br>
</span><b><span =
style=3D'font-size:10.0pt'>=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4<span =
lang=3DEN-US>:</span></span></b><span
lang=3DEN-US style=3D'font-size:10.0pt'> 2013</span><span =
style=3D'font-size:10.0pt'>=E5=B9=B4<span
lang=3DEN-US>5</span>=E6=9C=88<span
lang=3DEN-US>14</span>=E6=97=A5<span =
lang=3DEN-US> 10:27<br>
</span><b>=E6=94=B6=E4=BB=B6=E4=BA=BA<span =
lang=3DEN-US>:</span></b><span lang=3DEN-US> leaboy@126<br>
</span><b>=E6=8A=84=E9=80=81<span
lang=3DEN-US>:</span></b><span =
lang=3DEN-US> <a
href=3D"mailto:engine-devel@ovirt.org" =
target=3D"_blank">engine-devel(a)ovirt.org</a><br>
</span><b>=E4=B8=BB=E9=A2=98<span
lang=3DEN-US>:</span></b><span =
lang=3DEN-US> Re: [Engine-devel]
ovirt-engine-sdk with C</span></span><span =
lang=3DEN-US
<o:p></o:p></span></p>
</div>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> <o:p></o:p></span></p>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>2013/5/13 leaboy@126 <<a =
href=3D"mailto:wlbleaboy@126.com"
target=3D"_blank">wlbleaboy@126.com</a>><o:p></o:p></span></p>
<div>
<div>
<blockquote style=3D'border:none;border-left:solid windowtext =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color =
rgb(204,204,204)'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>Hi</span>=EF=BC=8C<span =
lang=3DEN-US>All<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>
I felt =
oivrt-engine-sdk
coded with Python is slowly to connect<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>ovirt-engine and console vm when a user have many vms, So, =
I just<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>want to rewrite the sdk with C(ANSI C Language). Just =
rewrite a sdk<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>with C to connect overt-engine and console vm, would anyone =
give <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>me some suggestion.<o:p></o:p></span></p>
</div>
</div>
</blockquote>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>Do you want to use c to invoke ovirt engine RestAPI, =
right?<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'><span
lang=3DEN-US>If yes, you can use libcurl to do the thing, and it'll make =
you
happy.<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> <o:p></o:p></span></p>
</div>
<blockquote style=3D'border:none;border-left:solid windowtext =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color =
rgb(204,204,204)'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>
Now, the =
problem is
how can I connect to ovit-engine with C,
and<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>how can I get some information of vms, and how =
ovirrt-engine can <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>respond my action(start,stop,
.eg)<o:p></o:p></span></p>
</div>
</div>
</blockquote>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>Agree with Michael
Pasternak.<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>You should parse your code into the mail list, or someone =
can't help<o:p></o:p></span></p>
</div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>you.<o:p></o:p></span></p>
</div>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> <o:p></o:p></span></p>
</div>
<blockquote style=3D'border:none;border-left:solid windowtext =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color =
rgb(204,204,204)'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> <o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> =
&=
nbsp; &n=
bsp; &nb=
sp; &nbs=
p;  =
; =
Leaboy@beijing<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> =
&=
nbsp; &n=
bsp; &nb=
sp; &nbs=
p;
Thinks<o:p></o:p></span></p>
</div>
</div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'><span
lang=3DEN-US><br>
_______________________________________________<br>
Engine-devel mailing list<br>
<a href=3D"mailto:Engine-devel@ovirt.org" =
target=3D"_blank">Engine-devel(a)ovirt.org</a><br>
<a
href=3D"http://lists.ovirt.org/mailman/listinfo/engine-devel" =
target=3D"_blank">http://lists.ovirt.org/mailman/listinfo/en...
<o:p></o:p></span></p>
</blockquote>
</div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US><br>
<br clear=3Dall>
<br>
-- <br>
---<br>
Best Regards<br>
Jarod.W<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US><br>
<br clear=3Dall>
<br>
-- <br>
---<br>
Best Regards<br>
Jarod.W<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class=3DMsoNormal><span lang=3DEN-US><br>
<br clear=3Dall>
<br>
-- <br>
---<br>
Best Regards<br>
Jarod.W<o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>
------=_NextPart_000_0091_01CE63A7.20682EF0--