[webkit-gtk] Get the content of text file with docLoader
Manuel Rego Casasnovas
rego at igalia.com
Mon Jan 20 13:43:21 PST 2014
Hi,
On Sat, 2014-01-18 at 12:43 +0530, Sunil wrote:
> An url to a text file is provided. How can we get the content of the text
> file with the help of docLoader.
Not sure if I got your question properly. But, you can load an URL with
webkit_web_view_load_uri() [1], get the main resource with
webkit_web_view_get_main_resource() [2] and get its content with
webkit_web_resource_get_data() [3].
I hope this helps.
Bye,
Rego
[1]
http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebView.html#webkit-web-view-load-uri
[2]
http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebView.html#webkit-web-view-get-main-resource
[3]
http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebResource.html#webkit-web-resource-get-data
More information about the webkit-gtk
mailing list