BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 03-08-2009, 03:01 PM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Model: Curve
PIN: N/A
Carrier: T-Mobile
Posts: 13
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default HTTPConnection class and ACL

Please Login to Remove!

Hello, I am trying to submit a GET to my server which is running apache with an ACL (access control list) implemented with an .htaccess file. I am able to accomplish this with a browser by either logging in the popup from the web server or using this notation for the URL: http://user:password@domain/dir?param1=val1&param2=val2 ... etc. When I try this over gprs from the Blackberry using the HTTPConnection class it throws a malformed url exception as soon as I call the open method on the url. As soon as I take away the user:password away from the url, it no longer throws the malformed url exception but then I am blocked by the security of the ACL. What is the correct way of accomplishing this, with this class ?
Offline  
Old 03-09-2009, 08:59 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

If you are using Basic Auth you should look at this knowledge base article. If another Auth type you should be able to code for it as well.
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

EXFO FTB-200-V2 MAINFRAME with FTB-7300E-234B SM OTDR Module
$13780.0
EXFO FTB-200-V2 MAINFRAME with FTB-7300E-234B SM OTDR Module pictureAvanex APNSHV01UX Mainframe
$112.0
Avanex APNSHV01UX Mainframe  pictureAndo AQ2140 Optical Lightwave Multimeter Power Meter Mainframe & GPIB Cable
$245.0
Ando AQ2140 Optical Lightwave Multimeter Power Meter Mainframe & GPIB Cable  pictureHameg HM8001-2 8001 Dual Mainframe w/ HM 8042 and HM8030-5 Modules
$650.0
Hameg HM8001-2 8001 Dual Mainframe w/ HM 8042 and HM8030-5 Modules pictureMKS 260MF-1SPPC Modular Flow Controller Main Frame with 2 Type 261 Displays
$248.81
MKS 260MF-1SPPC Modular Flow Controller Main Frame with 2 Type 261 Displays picture






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