Home > Backend Development > PHP Tutorial > android和ios调用php写的接口怎么判断用户使用的是安卓还是苹果

android和ios调用php写的接口怎么判断用户使用的是安卓还是苹果

WBOY
Release: 2016-06-13 12:12:02
Original
1202 people have browsed it

android和ios调用php写的接口如何判断用户使用的是安卓还是苹果
如何能在不动安卓 和 苹果版本的前提下 php接口这边判断调用这个接口的是安卓还是苹果?
------解决思路----------------------

引用:
应用发出的请求不像浏览器带useragent,目前不知道有什么办法区分,我这边工作也会用到,这两天研究下


用fiddler截了下自己手机的数据包,居然真的带了useragent
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template