Getting HTTP 406 in Android Webservice Call

后端 未结 3 513
被撕碎了的回忆
被撕碎了的回忆 2021-01-22 13:06

I\'m getting 406 when i invoke the rest web service via android application.Can any one suggest me what is the error in this code and why i am getting this error ??

R

3条回答
  •  感情败类
    2021-01-22 13:33

    406 means that the type of data being requested in the accept header of the request and the type returned by the server don't match. Either change your accepted type or change your return mime type.

提交回复
热议问题