Intercept web requests from a WebView Flash plugin
Posted
by starkos
on Stack Overflow
See other posts from Stack Overflow
or by starkos
Published on 2010-03-22T18:40:12Z
Indexed on
2010/03/22
18:41 UTC
Read the original article
Hit count: 317
I've got a desktop browser app which uses a WebView to host a Flash plugin. The Flash plugin makes regular requests to an external website for new data, which it then draws as fancy graphics.
I'd like to intercept these web requests and get at the data (so I can display it via Growl, instead of keeping a desktop window around). But best I can tell, requests made by Flash don't get picked up by the normal WebView delegates.
Is there another place I can set a hook? I tried installing a custom NSURLCache via [NSURLCache setSharedURLCache] but that never got called. I also tried method swizzling a few of the other classes (like NSCachedURLResponse) but couldn't find a way in. Any ideas? Many thanks!
© Stack Overflow or respective owner