Home > Backend Development > PHP Tutorial > 怎么从发走的url链接获取其返回的结果

怎么从发走的url链接获取其返回的结果

WBOY
Release: 2016-06-13 12:56:10
Original
740 people have browsed it

如何从发走的url链接获取其返回的结果

本帖最后由 huoshi5151 于 2013-01-10 21:17:29 编辑
引用
用户点击充值,平台游戏中心向游戏方发起请求,以获得用户是否激活该游戏该分区信息,已经激活,则进行充值,否则会提供错误。

样例url :
http://domain/api/active?qid=28318249&server_id=S1
游戏方返回结果:用户已经激活过该分区返回1,否则返回0


如何从这个发走的url链接获取其返回的结果?
url php
------解决方案--------------------
Curl or  ajax  所有能 get 的动作 都可以
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