HTTP errors on device!

Byak@

Active Member
Licensed User
my program start Script in thread (BasicLib.dll) and Script run CallHostSub with http response.
on desctop all work but on device i have diffrent errors!
B4X:
Response code: -1
ServerProtocolViolation
if url "http://ya.ru"
and

B4X:
Response code:501
Not Implemented
if utl "http://pda.yandex.ru"

help!
 

Byak@

Active Member
Licensed User
code of celled sub

Sub ortgetpage(ortn,url,codepage)
'ErrorLabel(ortgetpageerr)
req.new2(url,codepage)
resp.new2(codepage)
req.method="Get"
req.timeout=90000
resp.value=req.getresponse
ss=resp.getstring
resp.close
Return ss
ortgetpageerr:
resp.close
Return "%err%"
End Sub
 
Top