Is your backend generating the 500 error (should be easy to check the logs
there)

Otherwise you may be encountering problems with the self-signed cert.  Java
shindig's default fetcher will not retrieve data from sites with self-signed
certs.  Either add the ssl cert using the keytool command or see

http://hc.apache.org/httpcomponents-client/tutorial/html/connmgmt.html#d4e505

for info on how to loosen this requirement.

On Mon, May 10, 2010 at 8:45 AM, Eric Rose (erose) <[email protected]> wrote:

>
>
> Greetings,
>
>
>
> We are writing a gadget that uses makeRequest to contact an SSL secured
> API that uses a self-signed certificate and basic authentication.  We are
> base 64 encoding username:password  and specifying:
>
>
>
> Params[gadget.io.RequestParamters.HEADERS] = headers;
>
>
>
> Where headers = {“Authorization”:”Basic ” + encode64(‘<username:password
> >’)};
>
>
>
> Note there is a space after the word ‘Basic’ before the quote.  Also of
> note the URL created by the makeRequest has a portion that is %2520.  I
> think the space is being encoded twice.  %20 is becoming %2520.  Which seems
> wrong but I don’t know how to prevent it.  This may be the problem.  The
> self-signed cert may be the problem.  But because the request is SSL
> encrypted we can’t look at the request directly using WireShark.
>
>
>
> The response we get is as follows:
>
> Throw l;  <don’t be evil’ >{“https:
> 10.86.190.41:7890/icm-dp/rest/DiagnosticPortal/ListServices”:{“body”:””,
> “rc”:500}}
>
>
>
> The error is ‘Internal Server Error’, so we’re not sure what’s the problem
> with this.
>
> Any insight or assistance you may be able to provide would be appreciated.
>
>
>
> Thank you,
>
> David and Eric
>
>
>
>
>
> [image: Description: cid:[email protected]]
>
> *Eric Rose*
> *Software Engineer*
> *Product Development
> *
> [email protected]
> Phone :*(978) 936-1858*
>
> *Cisco Systems, Inc.*
> 500 Beaver Brook Road
> Boxborough, MA 01719
>
> www.cisco.com
>
>
>
>
>
>
>

Reply via email to