hi all http://www.payamakyab.com/sms/json/index/id/1
whit this json link I can get output on web browser and test android java app whit eclipse. But when I use HTTP library my test app doesn't get any information from json link. do you have any idea for this problem? eclipse app whit java work but basic 4 android app doesn't work
The problem is I have to use some other link whit first link style for login / register and more updates. and all links whit first style doesn't work in basic 4 android app but whit test app by eclipse it work fine
This site rejects your request because it doesn't include a user agent header. This code will work:
B4X:
Sub Get2_Click
ProgressDialogShow2("Please Wait...", True)
myJob.Initialize("GetData", Me)
myJob.Download(sURL2)
myJob.GetRequest.SetHeader("User-Agent", " Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0")
End Sub