06-03-2009 03:44 AM
i was trying to incorporate this article in my Custom Browser, but it seems that i can't make it work. I tried to just the cookies via eventOccurred section as instructed by the how-to article and display it, but it doesn't work. It doesn't enter the EVENT_SET_HTTP_COOKIE case when i tried accessing mail.yahoo.com or facebook.com.
Anybody tried this and made it work?
I realy need to support cookies in my custom browser.
Solved! Go to Solution.
06-04-2009 04:46 PM
I recommend using your own test page instead of a third party site where you can control the cookies that are set and view the cookies that are returned.
What BlackBerry Smartphone model and BlackBerry handheld software version are you testing on? You can find this under Options, About on the BlackBerry Smartphone.
06-04-2009 04:49 PM
I'm not sure how it is supposed to work or what is uniformly supported across OS versions but the easiest
thing to do is just read the http response headers and use "your" own cookie jar. These probably exist on the
web and aren't impossible to create from the specs. Of course, if you have canned associative containers
you can use those too.
06-21-2009 12:26 PM
just to update this thread, the cookie can be captured under the processConnection method of the BrowserFieldDemo application just right after invoking BrowserContent's getDisplayableContent().
I do get the cookies now.
06-22-2009 02:39 PM
Were you able to get cookies to work? I get the cookies through the Set Cookie Event as well as the method you just described, but am having troubles sending them back to the browser.
Any help would be greatly appreciated.
06-22-2009 07:24 PM
On most sites that I attempt to log in to, such as google and facebook. I've also been using various cookie testers (such as http://www.html-kit.com/tools/cookietester/), and they are not recieving the cookies back that I send them.
06-25-2009 03:51 AM
I also can't login to yahoo, gmail and facebook. but i was able to access friendster.com. I don't know why yahoo rejects the cookies. with regards to gmail, it has a "Secure" attribute in the cookies, so it needs an https connection. i'm still trying to implement the https support on my browser.
anybody knows if there are issues in accessing yahoo mail? thanks!
06-25-2009 08:27 PM