BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 01-18-2011, 05:50 AM   #1 (permalink)
New Member
 
Join Date: Jan 2011
Model: 9800
PIN: N/A
Carrier: wifi
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default HTTP Authentication

Please Login to Remove!

I've an android app and need to port the same to blackberry. I got stuck on the starting point itself. Im not able to clear http authentication. Authentication has username , password and a key. I got several options on doing username/password authentication. But still Im not able to clear. Please share your thoughts.
Offline  
Old 01-18-2011, 05:52 AM   #2 (permalink)
New Member
 
Join Date: Jan 2011
Model: 9800
PIN: N/A
Carrier: wifi
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: HTTP Authentication

Im posting the android code below. Please help me do the same thing for blackberry.

Authenticator.setDefault(new Authenticator(){
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(USERNAME, PASSWORD.toCharArray());
}});
HttpURLConnection c = (HttpURLConnection) new URL(requestUrl).openConnection();
c.setUseCaches(false);
c.setRequestProperty("api_key", API_KEY);
c.connect();
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: HTTP Authentication
Thread Thread Starter Forum Replies Last Post
Use your Pearl as a BT Modem under OS X ggoodale Mac Users Corner 250 04-27-2011 09:11 PM
HTTP Authentication issue chasdrury BES Admin Corner 6 12-16-2009 10:51 AM
http digest authentication wang_hai2000 Developer Forum 6 02-19-2008 04:01 PM
Allowing MDS to support HTTP Authentication tgray BES Admin Corner 5 06-17-2005 11:05 AM
HTTP Authentication on Rogers WAP Gateway dinouye Developer Forum 4 10-15-2004 08:48 AM





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.