Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
07-13-2010 12:48 PM
Please take a look at page three, the second post is my one with the solution for your authentication problem:
Simply call the SetBasicHttpAuthentication method and you will be fine.
You do not need to change your URL.
We did fix the rest already in the PM's, didn't we?
07-13-2010 03:32 PM
Thank you for your help.
I used your code to sent PAP push to the RIM PPG (URL: https://pushapi.eval.blackberry.com/mss/PD_pushReq
First, I install RIM Push SDK in my server and I check my server can run well.
Then, I do registration using my Blackberry device, I can get the OK as return result.
I can get the device information at https/myserver/debug-portal/subscri
Subscriber query results Subscriber ID Address Status 601-6c65MRr795DOnM51 22xxxxxx ACTIVE
And then, I send the PAP push to my device via RIM BIS using your code. I use same Application ID as user and the Pwd as password to do device register and sending PAP push.
Finally, I get Access Forbiden (403) error.
Could you tell me step by step that how to get the response status is OK after you send the PAP push to the https://pushapi.eval.blackberry.com/mss/PD_pushReq
Thanks again for your help.
07-13-2010 03:44 PM - edited 07-13-2010 03:45 PM
Did you implement the HttpAuthentication as I described it here:
public static void SetBasicAuthHeader(WebRequest req, String userName, String userPassword)
string authInfo = userName + ":" + userPassword;
authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(a uthInfo));
req.Headers["Authorization"] = "Basic " + authInfo;
If you use the code you sent me via PM, you use this method, so everything should be fine there.
Could you please debug all exceptions thrown, with all data you get, and all data from the innerException (if available).
Please put all this data here so that we can check this.
Could you please also try to open the URL in your standart browser and see what message you get there?
To the Kudo's:
To the left of this post, you will see my Account name and some stats.
Underneath that, there is a white star on a black background.
Please click this star beside every post with which I or someone else helped you.
We can then see that this post helped you and get the so called Kudo's (points).
The guys with many Kudo points helped many times - that's the principe.
07-13-2010 04:16 PM
Thank you for your help.
I implemented the HttpAuthentication as you described.
I also try to use the Java to do same thing. I got the Bad Request (400) error.
I need to install visual studio on my server. In that case, I can debug step by step.
07-13-2010 04:34 PM
Yes, that would be the best - or you do send your request over an proxy on your server as I described in the other thread.
Then you can debug your application from whereever you are.
07-16-2010 03:15 PM
Should I do the registration, before I do PAP push request?
For the registration, the url is
is the serviceid the applicationid that I got from RIM?