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

Java Development

Reply
BlackBerry Development Advisor
Posts: 15,697
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Browser Demo accessing yahoo mail

Have a look at the link below for help adding cookie support to the browserfielddemo.

 

How To – Enable cookies in BrowserField
Article Number: DB-00675

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800440/How_To_...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: Browser Demo accessing yahoo mail

Hi Mark,

 

yes i already tried implementing that. It works for friendster but not in yahoo mail, gmail, facebook and ebay. So what i did was to extract the cookies in the response then append it to the next request. Thanks! 

Developer
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: Browser Demo accessing yahoo mail

Should my application check/validate the cookies before setting it to the request? like for example expiry? My current implementation is that it parses the header as mentioned in the KB article, then stores it in persistent storage. then when i try to login, i retrieve it from the storage then i call this one _currentConnection.setRequestProperty("Cookie","cookie1=value; cookie2=value;"); to set my cookies. But what i get when logging in facebook is "invalid username and password". then in mail.yahoo.com, i get "The browser you're using refuses to sign in.(cookies rejected).

 

Any implementation suggestions? Thanks! 

Highlighted
Developer
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: Browser Demo accessing yahoo mail

up. anybody? Thanks