开发者

Is it possible to override the HTTP functions in wxHtmlWindow?

I would like wxHtmlWindow to use libcurl instead of the internal wxHTTP class.

Is there an easy way to do this? If not, can I at least change the useragent wxHtmlWindow sen开发者_如何转开发ds when it accesses pages?


I would create a class that manage my curl session. Setting a user agent, cookies, server to connect to etc.

Also I would make that class to be able to save the page I get from the internet to a file temp/web.htm

and then I would use something like:

htmlwin->LoadPage("temp/web.htm");

Where htmlwin is a wxHtmlWindow

This is the first thing that comes in my mind, maybe I can think to a better solution.

EDIT 1: See this link so see a little example of wrapping curl in a C++ class

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜