T thestronger New Member Nov 2, 2008 #1 First ,i'm sorry for my bad English ! I can use "http.dll" to read a "www "type page ,e.g."www.yahoo .com".But I cannot read a"wap" type page(wml),e.g."wap.yahoo.com".Why ? How can I do it in Basic4PPC?
First ,i'm sorry for my bad English ! I can use "http.dll" to read a "www "type page ,e.g."www.yahoo .com".But I cannot read a"wap" type page(wml),e.g."wap.yahoo.com".Why ? How can I do it in Basic4PPC?
Erel B4X founder Staff member Licensed User Longtime User Nov 2, 2008 #2 The following code works fine: Code: Copy Sub Globals 'Declare the global variables here. End Sub Sub App_Start req.New1("http://wap.yahoo.com") 'req is a WebRequest object res.New1 'res is a WebResponse object res.Value = req.GetResponse Msgbox(res.GetString) End Sub
The following code works fine: Code: Copy Sub Globals 'Declare the global variables here. End Sub Sub App_Start req.New1("http://wap.yahoo.com") 'req is a WebRequest object res.New1 'res is a WebResponse object res.Value = req.GetResponse Msgbox(res.GetString) End Sub
N N1c0_ds Active Member Licensed User Nov 2, 2008 #3 My guess is that you pointed your app to "www.wap.yahoo.com" instead "wap.yahoo.com". It won't work on your computer neither.
My guess is that you pointed your app to "www.wap.yahoo.com" instead "wap.yahoo.com". It won't work on your computer neither.