Getting HTML response instead of JSON in android

后端 未结 2 1479
天命终不由人
天命终不由人 2020-12-06 21:18

I\'m trying to retrieve data from mysql database located on a remote server through php into android. This worked fine while running in localhost. But when it is in remote s

2条回答
  •  庸人自扰
    2020-12-06 21:39

    Atlast found solution...

    The issue was not with the android or php part. It was the problem with the server. The hosting site which I used, sends cookies to client side which is not handled inside android but is automatically handled by browsers. I used to another hosting site where cookies are not involved and got the needed json output.

提交回复
热议问题