Problems connecting from a plugin to a rest api, since the method doFilter

Eduardo cardona (PSL) May 31, 2013

goog day, I have problems connecting from a plugin to a rest api, since the method doFilter. thanks.

2 answers

1 accepted

0 votes
Answer accepted
Eduardo cardona (PSL) June 4, 2013

the solution is: change -->httpGetRequest.setHeader("Authorization", "Basic "+Base64.encodeBase64String("admin:admin".getBytes()));

for

httpGetRequest.setHeader("Authorization", "Basic "+new String(Base64.encodeBase64("admin:admin".getBytes())));

0 votes
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 31, 2013

Can you give a bit more details? Are you calling an existing interface or your new interface?

Are you calling REST interface from within the Javascript or from server side Java code? Server side calling of REST is not a good idea.

Eduardo cardona (PSL) June 3, 2013

Good day, Then from the server side as I can get the information of the issues?

Suggest an answer

Log in or Sign up to answer