使用 PHP 将 XML POST 到 URL 并处理响应 [英] POST XML to URL with PHP and Handle Response

查看:29
本文介绍了使用 PHP 将 XML POST 到 URL 并处理响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

多年来,我已经看到许多使用 PHP 发布数据的方法,但我很好奇建议的方法是什么,假设有一个.或者也许有一种不言而喻但半普遍接受的方法来这样做.这也包括处理响应.

I've seen numerous methods of POSTing data with PHP over the years, but I'm curious what the suggested method is, assuming there is one. Or perhaps there is a somewhat unspoken yet semi-universally-accepted method of doing so. This would include handling the response as well.

推荐答案

你可以试试史努比脚本
这对于不允许
fopen 包装器
我已经使用它来获取 RSS 提要好几年了.

You could try the Snoopy script
It is useful on hosting providers that don't allow fopen wrappers
I have used it for several years to grab RSS feeds.

这篇关于使用 PHP 将 XML POST 到 URL 并处理响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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