With Windows 7 64-bit, PB 4.61 Beta 1, Firefox 11.0
Now, at first glance, it "seems" to work, because there is an output, BUT the contents is NOT of http://ip.xxoo.net/ !
Instead, it contains this:

It is not an illusion, it contains "This program cannot display the webpage".
Here is the source code:
Code: Select all
Procedure.s GetHtmlCode(URL.s)
GhostWin=OpenWindow(#PB_Any,0,0,600,300,"",#PB_Window_Invisible)
WebGad=WebGadget(#PB_Any,10,10,580,280,URL.s,#PB_Web_Mozilla)
While WindowEvent():Wend
While GetGadgetAttribute(WebGad,#PB_Web_Busy)<>0
While WindowEvent():Wend
Wend
While WindowEvent():Wend
WebPage.s=GetGadgetItemText(WebGad,#PB_Web_HtmlCode)
CloseWindow(GhostWin)
ProcedureReturn WebPage.s
EndProcedure
C$=GetHtmlCode("http://ip.xxoo.net")
DeleteFile("c:/temp/xxoo.htm")
OpenFile(1,"c:/temp/xxoo.htm")
WriteStringN(1,C$)
CloseFile(1)
If OpenConsole()
PrintN(C$)
PrintN(Str(Len(C$)))
Input()
EndIf
If it worked for you, please check also the contents!
