如何在不使用INTERNET权限的情况下将POST数据从android发送到php? [英] How can I send POST data from android to php without using INTERNET permission?

查看:77
本文介绍了如何在不使用INTERNET权限的情况下将POST数据从android发送到php?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现有许多使用INTERNET权限的示例,是否有任何方法可以在不使用该权限的情况下将数据发送到php?

I found many examples using INTERNET permission, is there any approach to send data to php without using the permission?

推荐答案

不,没有办法做到这一点,您需要Internet许可,因为这允许android使用Internet协议(例如TCP,传输控制协议)核心协议,并且需要通过HTTP请求发送POST数据),因此,如果没有INTERNET许可,则无法在Android和服务器之间使用Internet协议进行数据传输(我假设您正在谈论php处于启用状态)服务器).

No, there is no approach to do this, you need the internet permission as this allows android to use internet protocols (like TCP, Transmission Control Protocol which is one of the core protocols and is needed to send POST data -via a HTTP request-) So without the INTERNET permission there can be no data transference using internet protocols between android and the server (I'm assuming your are talking about the php being on a server).

这篇关于如何在不使用INTERNET权限的情况下将POST数据从android发送到php?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆