I have an URL with a strange behavior
it's getting loaded correctly in Chrome, but it gets a 403 error in a WebView
i suspect the web server is expecting some header for a proper browser request
i already tried setting a standard user-agent but with no different outcome
it's getting loaded correctly in Chrome, but it gets a 403 error in a WebView
i suspect the web server is expecting some header for a proper browser request
i already tried setting a standard user-agent but with no different outcome
B4X:
Dim m As Map
m.Initialize
m.Put("User-Agent","Mozilla/5.0 (Windows; U; Windows NT 6.1; zh_CN) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0 baidubrowser/1.x Safari/534.7")
Dim r As Reflector
r.Target = WV_meteowidget
r.RunMethod4("loadUrl", Array As Object(url, m), Array As String("java.lang.String", "java.util.Map"))