title: Retrofit android not working and retrofitError 401
body: <p>I am using Retrofit connect electronic devices .but it responding with incorrect data.
  Please suggest me some solution to this problem. Do you guys have any idea is it related to connect ?
  myUrl :<a href="http://11.10.88.23/ajax_control&amp;/" rel="nofollow">http://11.10.88.23/ajax_control&amp;/</a></p>
  
  <p>Interface Exapi</p>
  
  <pre><code>public interface ExApi {
  @GET("/ajax_control&amp;")
  public void getFeed(Callback&lt;Document&gt; response);
  }
  </code></pre>
  
  <p>Mainclass</p>
  
  <pre><code>public class MainActivity extends Activity implements RequestInterceptor{
      Button mButton;
      public static final String BASE_URL="http://11.10.88.23/";
      @Override
      protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.main);
              mButton = (Button) findViewById(R.id.button);
              mButton.setOnClickListener(new View.OnClickListener() {
                      @Override
                      public void onClick(View v) {
                              requestData(BASE_URL);
                      }
              });
      }
      private void requestData(String url){
              RestAdapter adapter=new RestAdapter.Builder()
                      .setEndpoint(url).build();
              ExApi api=adapter.create(ExApi.class);
              api.getFeed(new Callback&lt;Document&gt;() {
                      @Override
                      public void success(Document document, Response response) {
                              Toast.makeText(getApplicationContext(), "value: " + document.getElementsByTagName("LED").item(0).getChildNodes().item(0).getNodeValue(), Toast.LENGTH_SHORT).show();
                      }
  
                      @Override
                      public void failure(RetrofitError retrofitError) {
                              Log.d("lai loi: ", retrofitError.getMessage());
                      }
              });
  
      }
  
      @Override
      public void intercept(RequestFacade requestFacade) {
              final String author=encodeCredentialsForBasicAuthorization();
              requestFacade.addHeader("Authorization", author);
      }
      private String encodeCredentialsForBasicAuthorization() {
              final String userAndPassword = "user:admin";
              return "Basic " + Base64.encodeToString(userAndPassword.getBytes(), Base64.NO_WRAP);
      }
  }
  </code></pre>