R rosippc64a Active Member Licensed User Longtime User Apr 19, 2018 #1 Hi All! I have a small code: Code: Copy Dim j As HttpJob j.Initialize("", Me) j.Download(url) Wait For (j) JobDone(j As HttpJob) If j.Success Then ... Some hours of working with different webpages there is an error, what says that it can't get IP address to the webpage, so it can't download the content of webpage. There is a lot of webpage, and when some fails, maybe other works. When I try a failed webpage on a pc, there is no error at all, so not a global network error happened. I restart the android device, and all goes well, even previously failed webpage also. I stored IP addresses after all succeed download, so I know the right IP of failed webpage. i.e: http://travellina.hu/feed/ IP: 92.43.203.181 Of course, the http://92.43.203.181 doesn't work, but can I access the webpage by its IP address? thanks in advance Steven
Hi All! I have a small code: Code: Copy Dim j As HttpJob j.Initialize("", Me) j.Download(url) Wait For (j) JobDone(j As HttpJob) If j.Success Then ... Some hours of working with different webpages there is an error, what says that it can't get IP address to the webpage, so it can't download the content of webpage. There is a lot of webpage, and when some fails, maybe other works. When I try a failed webpage on a pc, there is no error at all, so not a global network error happened. I restart the android device, and all goes well, even previously failed webpage also. I stored IP addresses after all succeed download, so I know the right IP of failed webpage. i.e: http://travellina.hu/feed/ IP: 92.43.203.181 Of course, the http://92.43.203.181 doesn't work, but can I access the webpage by its IP address? thanks in advance Steven
Erel B4X founder Staff member Licensed User Longtime User Apr 20, 2018 #2 rosippc64a said: but can I access the webpage by its IP address? Click to expand... Yes. You just need to use the ip address instead of the host name. Some servers check the host header. You can set it: https://www.b4x.com/android/forum/threads/binding-to-one-static-ip.91793/#post-579780 Upvote 0
rosippc64a said: but can I access the webpage by its IP address? Click to expand... Yes. You just need to use the ip address instead of the host name. Some servers check the host header. You can set it: https://www.b4x.com/android/forum/threads/binding-to-one-static-ip.91793/#post-579780
R rosippc64a Active Member Licensed User Longtime User Apr 20, 2018 #3 Thank you very much Erel! Super, works good!!! Upvote 0