views:

43

answers:

0

I've been writing a Mac app to inspect each HTTP request and so I'm using WebView to load the request.

The problem is I can't seem to figure out how to get the content of each of the resource item?

I'm trying to get the contents for the resource from the WebResourceLoadDelegate method

- (void)webView:(WebView *)sender resource:(id)identifier didFinishLoadingFromDataSource:(WebDataSource *)dataSource

But that seems to be no luck. I was also looking at [dataSource data] but that just gave me the HTML for the request and not the data for the resource item.

Any ideas how I can get the contents of the resource?

Thanks.