BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 01-18-2011, 06: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, 06: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 11:51 AM
http digest authentication wang_hai2000 Developer Forum 6 02-19-2008 05: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

Honeywell Rapid eye Hrm16br1c1t0 Dvr Mother Board,SFL 42V0 E52914 94V-0 P/n: 10
$250.0
Honeywell Rapid eye  Hrm16br1c1t0 Dvr Mother Board,SFL 42V0 E52914 94V-0 P/n: 10 pictureUsed Motherboard Mainboard for MSI 238756S-G4123-Socket-AM3 DDR3 USB2 ATX For
$209.99
Used Motherboard Mainboard for MSI 238756S-G4123-Socket-AM3 DDR3 USB2 ATX For pictureHP DC5750 Socket AM2 Motherboard 432861-001 W/AMD Sempron 64 3400+ 1.8GHz. #M76
$48.0
HP DC5750 Socket AM2 Motherboard 432861-001 W/AMD Sempron 64 3400+ 1.8GHz. #M76 pictureAsus P4B REV:1.03 Socket 478 Desktop Motherboard. #M75
$48.0
Asus P4B REV:1.03 Socket 478 Desktop Motherboard. #M75 pictureAdvantech PCA-6120P12 Rev A2 19AK612021 Motherboard
$79.99
Advantech PCA-6120P12 Rev A2 19AK612021 Motherboard picture






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