<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1445160422533_3555" dir="ltr"><span id="yui_3_16_0_1_1445160422533_4552">Hi </span><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id="yui_3_16_0_1_1445160422533_3568" class="">Salifou,</span></div><div id="yui_3_16_0_1_1445160422533_3555" dir="ltr"><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" class=""><br></span></div><div id="yui_3_16_0_1_1445160422533_3555" dir="ltr"><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" class="" id="yui_3_16_0_1_1445160422533_3595">Actually java sdk is </span><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id="yui_3_16_0_1_1445160422533_4360" class="">intentionally </span><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id="yui_3_16_0_1_1445160422533_4362" class="">hiding transport level internals so developers could stay in java domain,</span></div><div id="yui_3_16_0_1_1445160422533_3555" dir="ltr"><span class="" id="yui_3_16_0_1_1445160422533_4435"><font face="Helvetica Neue, Segoe UI, Helvetica, Arial, Lucida Grande, sans-serif" id="yui_3_16_0_1_1445160422533_4432" class="">if your headers are static, easiest way would be using reverse proxy in a middle to intercept requests, </font><br></span></div><div id="yui_3_16_0_1_1445160422533_3555" dir="ltr"><span class=""><font face="Helvetica Neue, Segoe UI, Helvetica, Arial, Lucida Grande, sans-serif" class=""><br></font></span></div><div id="yui_3_16_0_1_1445160422533_3555" dir="ltr"><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id="yui_3_16_0_1_1445160422533_4357">can you tell me why do you need this?</span><br></div> <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Friday, October 16, 2015 1:14 AM, Salifou Sidi M. Malick <ssidimah@redhat.com> wrote:<br> </font> </div> <br><br> <div class="y_msg_container">Hi Micheal,<br><br>I have a question about the ovirt-engine-sdk-java.<br><br>Is there a way to add custom request headers to each RHEVM API call?<br><br>Here is an example of a request that I would like to do:<br><br>$ curl -v -k \<br> -H "ID: <a ymailto="mailto:user1@ad.xyz.com" href="mailto:user1@ad.xyz.com">user1@ad.xyz.com</a>" \<br> -H "PASSWORD: Pwssd" \<br> -H "TARGET: kobe" \<br> <a href="https://vm0.smalick.com/api/hosts" target="_blank">https://vm0.smalick.com/api/hosts</a><br><br><br>I would like to add ID, PASSWORD and TARGET as HTTP request header. <br><br>Thanks,<br>Salifou<br><br><br><br></div> </div> </div> </div></div></body></html>