<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Ravi, </div><div><br></div><div>When I added the -v parameter for more verbose output I noticed that the call was truncated before the first '&' and then tried the call escaping these characters as below which did return a response:</div><div>curl <a href="http://rest.bioontology.org/bioportal/search?query=fore\&ontologyids=1125\&apikey=YourAPIKey">http://rest.bioontology.org/bioportal/search?query=fore\&ontologyids=1125\&apikey=YourAPIKey</a></div><div><br></div><div>Best, </div><div>Trish </div><div><br></div><div><br></div><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Trish Whetzel, PhD</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Outreach Coordinator</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">The National Center for Biomedical Ontology</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Ph: 650-721-2378</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><a href="http://www.bioontology.org">http://www.bioontology.org</a></div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br></div><div><div><div><span class="Apple-style-span" style="font-size: 12px; ">"Like" NCBO on Facebook: <a href="http://on.fb.me/bioontology">http://on.fb.me/bioontology</a></span></div><div><span class="Apple-style-span" style="font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="font-size: 12px; ">Follow NCBO on Twitter: <a href="http://twitter.com/#!/bioontology">http://twitter.com/#!/bioontology</a></span></div><div><span class="Apple-style-span" style="font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="font-size: 12px; ">Join in Discussions on LinkedIn: <a href="http://linkd.in/ncbo-group">http://linkd.in/ncbo-group</a></span></div></div></div></div><div><span class="Apple-style-span" style="font-size: 12px; "><br></span></div></div></span></div></span></div></span></div></div></div><div><br></div><br><div><div>On Dec 28, 2012, at 7:20 AM, Ravi Teja Lokineni wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Looping in our dev team in CC.<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 28, 2012 at 8:48 PM, Ravi Teja Lokineni <span dir="ltr"><<a href="mailto:raviteja.lokineni@india.semanticbits.com" target="_blank">raviteja.lokineni@india.semanticbits.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>I have created and account with this email and while trying to access the url: <a href="http://rest.bioontology.org/bioportal/search?query=fore&ontologyids=1125&apikey=" target="_blank">http://rest.bioontology.org/bioportal/search?query=fore&ontologyids=1125&apikey=</a><api-key><br>


<br>Via browser it's working fine and via curl command it's showing me the response below, can someone please assist me:<br><br>I get the response:<br><?xml version="1.0" encoding="UTF-8"?><br>


<errorStatus><br>  <accessedResource>/bioportal/search</accessedResource><br>  <accessDate>2012-12-28 07:00:33.725 PST</accessDate><br>  <shortMessage>Forbidden</shortMessage><br>


  <longMessage>A valid API key is required to call REST services. Please visit <a href="http://bioportal.bioontology.org/account" target="_blank">http://bioportal.bioontology.org/account</a> to get your API key.</longMessage><br>


  <errorCode>403</errorCode><br></errorStatus><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><span style="color:rgb(42,151,212)"><b>Ravi Teja Lokineni</b></span><span> | Software Engineer</span></div>

<div><span style="font-size:x-small">SemanticBits India Pvt. Ltd.</span></div>
<div><font size="1"><br></font></div><div><span style="color:rgb(242,101,34);font-family:Arial,Helvetica,Geneva,sans-serif;font-size:x-small"></span><span style="color:rgb(242,101,34);font-family:Arial,Helvetica,Geneva,sans-serif;font-size:x-small">E: <span style="color:rgb(0,0,0)"><a href="mailto:raviteja.lokineni@india.semanticbits.com" target="_blank">raviteja.lokineni@india.semanticbits.com</a></span></span><font size="1"><br>


</font><div><br><a href="https://www.linkedin.com/in/ravitejalokineni" target="_blank"><img src="http://s2.licdn.com/scds/common/u/img/webpromo/btn_liprofile_blue_80x15.png"></a><br></div></div><div style="width:auto;padding-top:2px;font-size:80%;border-top:1px solid rgb(238,238,238);margin-top:10px">


<br><span style="color:rgb(63,72,204)"></span></div>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div><span style="color:#2a97d4"><b>Ravi Teja Lokineni</b></span><span> | Software Engineer</span></div><div><span style="font-size:x-small">SemanticBits India Pvt. Ltd.</span></div>

<div><font size="1"><br></font></div><div><span style="color:rgb(242,101,34);font-family:Arial,Helvetica,Geneva,sans-serif;font-size:x-small">M: <span style="color:rgb(0,0,0)">+919848657435</span><br></span><span style="color:rgb(242,101,34);font-family:Arial,Helvetica,Geneva,sans-serif;font-size:x-small">E: <span style="color:rgb(0,0,0)"><a href="mailto:raviteja.lokineni@india.semanticbits.com" target="_blank">raviteja.lokineni@india.semanticbits.com</a></span></span><font size="1"><br>

</font><div><br><a href="https://www.linkedin.com/in/ravitejalokineni" target="_blank"><img src="http://s2.licdn.com/scds/common/u/img/webpromo/btn_liprofile_blue_80x15.png"></a><br></div></div><div style="width:auto;padding-top:2px;font-size:80%;border-top:1px solid #eeeeee;margin-top:10px">

<br><span style="color:#3f48cc"></span></div>
</div>
_______________________________________________<br>bioontology-support mailing list<br><a href="mailto:bioontology-support@lists.stanford.edu">bioontology-support@lists.stanford.edu</a><br>https://mailman.stanford.edu/mailman/listinfo/bioontology-support<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br></div></div></div></span></div></span></div></span></div></span></span></div></body></html>