我对 Android rest web-services 非常陌生,我想从我的 android 程序中连接 Rest web-services,为此我编写了以下代码:
HttpClient httpClient = new DefaultHttpClient();
HttpContext localContext = new BasicHttpContext();
HttpGet httpGet = new HttpGet("http://***********:8000/sap/bc/srt/rfc/sap/z_customer_lookup1/800/z_customer_lookup1/z_customer_lookup1_bind&sap-user=*******&sap-password=********");
但是当我运行此代码时,我收到登录错误消息,如何在 Android Rest Web 服务中提供身份验证。