Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
Posts: 2
Registered: ‎02-05-2009
My Device: Not Specified

How to implement basic authorization for a channel push in C#

Hi,

I'm trying to add Basic authentication to do a channel push to blackberry device using push code that's written in C#.   I've seen samples written in Java but not in C#.  Could anyone help me with the syntax?

Thanks.

Highlighted
New Developer
Posts: 2
Registered: ‎02-05-2009
My Device: Not Specified

Re: How to implement basic authorization for a channel push in C#

I figured out the solution. You add another header:

httpWReq.Headers.Add("Authorization", "Basic [your 64base encoded data]");

Thanks.