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

VINTAGE J. SKLAR SUCTION VACUUM PUMP MEDICAL ASPIRATOR 05-6500 110V
$29.0
VINTAGE J. SKLAR SUCTION VACUUM PUMP MEDICAL ASPIRATOR 05-6500 110V pictureUsed- Multivac Model A300/52 Pouch Sealer for Vacuum / MAP (Modified Atmospheric
$4500.0
Used- Multivac Model A300/52 Pouch Sealer for Vacuum / MAP (Modified Atmospheric pictureSakura Tissue-Tek VIP E300 Benchtop Vacuum Infiltration Tissue Processor
$8447.0
Sakura Tissue-Tek VIP E300 Benchtop Vacuum Infiltration Tissue Processor pictureA/C DIAGNOSTIC TESTER MANIFOLD SET R134A, 1/2HP 5CFM VACUUM PUMP W/ DUAL FITTING
$116.52
A/C DIAGNOSTIC TESTER MANIFOLD SET R134A, 1/2HP 5CFM VACUUM PUMP W/ DUAL FITTING pictureUsed- M&O Perry Model SPS Vacuum Stoppering Machine. Is capable of speeds up to
$14500.0
Used- M&O Perry Model SPS Vacuum Stoppering Machine.  Is capable of speeds up to picture






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