c# - WebBrowser iframe not displays when using HttpWebRequest (navigate with own proxy) -


i use winform webbrowser load website. website contains iframe. url here: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe

when use navigate() method load url. webbrowser displays texteditor , iframe.

i want load website via proxy defined application , inject data web browser control.

when try use httpwebrequest load website, this:

    httpwebrequest myrequest = (httpwebrequest)httpwebrequest.create("http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe");      httpwebresponse myresponse = (httpwebresponse)myrequest.getresponse();      webbrowser1.documentstream = myresponse.getresponsestream(); 

the webbrowser display html's texteditor, iframe not displayed. show me iframe's url. enter image description here why webbrowser not display iframe contents ? while html,css,js still work, iframe not ?

i use httpwebrequest instead of navigate(), because want use many proxy load web page. !

this because pumping html stream browser. doing ajax call using javascript's document.write write contents document.

the issue document url about:blank page loaded has relative url iframe about://domain.com/path/to/iframe-page.html , not http://domain.com/path/to/iframe-page.html

edit

so if page want load defined use absolute urls. otherwise wont work.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -