Objective C 写入远程 URL
好的,我有远程主机的正确用户名/通行证,并且有一个引用服务器上文件的 NSURL
对象。
我怎样才能通过 Objective-C 将数据写入该服务器?我找不到任何有此问题的人,所以您的帮助将不胜感激!
Ok, so I have the correct username / pass for a remote host, and I have a NSURL
Object referring to the file on the server.
How can I possibly write data to that server via Objective-C? I cannot find anyone with this problem, so you help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直在编写我的程序时这样做。答案取决于您安装的服务器及其支持的语言。正如我所想,如果您有 PHP,只需向您的服务器发送 GET 请求并指示 PHP 写入它接收到的数据即可。
这是我的功能:
在客户端:
如你所见,我使用块
I do it all the time with the program I am writing. The answer depends on what server you have installed and what languages it supports. If, as I think, you have PHP, just send a GET request to your server and instruct the PHP to write the data it receives.
This is a function of mine:
On the client side:
As you can see I use blocks