Authentication problem

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Authentication problem

Postby neobk_25 » Thu Apr 30, 2009 4:34 pm

I am trying to access del.icio.us api from android with the following code :

CredentialsProvider credentialsProvider = httpClient
.getCredentialsProvider();
if (credentialsProvider != null) {
credentialsProvider.setCredentials(SCOPE,
new UsernamePasswordCredentials(username, password));
}
......

HttpGet get = new HttpGet("https://api.del.icio.us/v1/posts/dates");
try {
httpResponse = httpClient.execute(get);
}catch(Exception e){}
It is very strange because I only get the result but a IllegalArgumentException or NoHttpResponseException.
If I change the url to other https website with no client authentication require then it works perfectly.

Does anybody have the same experience on this situation? I don't think my problem comes from proxy
cause I can data from other sites and also from android's browser.

Thankyou
neobk_25
Freshman
Freshman
 
Posts: 2
Joined: Thu Mar 26, 2009 11:32 am

Top

Postby neobk_25 » Wed May 06, 2009 12:23 pm

Got the answer. Problem from debuger. It is ok if run in release mode.
neobk_25
Freshman
Freshman
 
Posts: 2
Joined: Thu Mar 26, 2009 11:32 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 4 guests