Thanks Brian.. that worked ..! :)<br><br><div class="gmail_quote">On Thu, Aug 9, 2012 at 9:31 PM, Brian Waldon <span dir="ltr"><<a href="mailto:bcwaldon@gmail.com" target="_blank">bcwaldon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">You're getting a '300 Multiple Choices' response as you haven't indicated a version in your request. You can parse the body as json (indicated in the headers) to see what API versions are available to you at any given time. If you don't care about  taking that extra step, just use a URI with 'v1' as the first token in your path: http://<Glance_URL>:<PORT>/v1/images/detail<div>
<br></div><div>Brian Waldon<br><div><br></div><div><br><div><div><div class="h5"><div>On Aug 9, 2012, at 2:05 AM, Sajith Kariyawasam wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5">Hi all, <div><br>
</div><div>I'm trying to invoke Openstack Glance REST API s using a Java client, to get image details. etc (Ultimately I need to upload an image)</div><div><br></div><div>When I invoke http://<Glance_URL>:<PORT>/images/detail  GET request in Java code, I'm getting <b>HTTP 300 </b>as the response code.</div>

<div><br clear="all"></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div>4 < 300</div></div></div><div><div><div>4 < Date: Thu, 09 Aug 2012 08:56:29 GMT</div></div></div><div><div><div>

4 < Content-Length: 222</div></div></div><div><div><div>4 < Content-Type: application/json</div></div></div><div><div><div>4 < Connection: keep-alive</div></div></div></blockquote><div><div><br></div><div>Any idea what could have gone wrong there?</div>

<div><br></div>-- <br>Best Regards<div>Sajith</div><br>
</div></div></div>
_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards<div>Sajith</div><br>