DefaultHttpClient httpclient = new DefaultHttpClient();
                             scope = new AuthScope("
http://76.10.226.133:8000/sap/bc/srt/rfc/sap/zemptrack_overview/800/zemptrack_overview/zemptrack_overview
",8000);

                             String   Username = "user1";
                             String  Password = "pass1";

                                myCredentials = new
UsernamePasswordCredentials( Username, Password );
                                provider = new BasicCredentialsProvider();
                                provider.setCredentials(scope, credentials);
                                httpclient.setCredentialsProvider( provider
);
10-01 16:11:08.614: ERROR/HTTPStatus(548): Referral_Request ResponseHTTP/1.1
401 Unauthorized
i have to connct to the sap server

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to