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
 
 
 
Eric Rose
Software Engineer
Product Development

[email protected] <mailto:[email protected]> 
Phone :(978) 936-1858
Cisco Systems, Inc.
500 Beaver Brook Road
Boxborough, MA 01719

www.cisco.com <http://www.cisco.com> 
 
 
 

Reply via email to