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

Posts: 44
Registered: ‎11-12-2012
My Device: BB 10 Dev Apha
My Carrier: -

Intercepting HTTP Requests

Dear All,

don't know if Webworks allows it and I guess the issue is much easier in native development..basically I would like to intercept all HTTP requests to handle 401 response that I get when I ask external HTML content to a server and my session cooki is expired.

I wish to avoid adding event listeners to all possible involved DOM objects to wrap their events.Morevore, same elements can have GET or POST verbs according to the requested page and this make the task harder..


Is there some native behavior that is mapped in webworks.js?

Do I have to write an extension?


Any help is appreciated!


Thanks a lot for your time!