dongxianji0968 2010-01-15 01:31
浏览 95
已采纳

Php在post请求中读取xml

So, I have perform two steps

a) Create a some random xml file in one of the php file. b) Parse the same xml file in second file.

Key points are that php file in a) will issue a post request to php file b) with only xml as its request.

file b) will have to read the xml file using SImpleXml.

I am trying to do something for this http://blog.superfeedr.com/API/pubsubhubbub/getting-started-with-pubsubhubbub/.

I my server will be receiving notifications in form of xml from the the superfeeder. The notifications will be xml file in the request.

I am doing step a) just to confirm that my part b) is correct.

How to do this in PHP. I tried all the $_REQUEST, $GLOBALS variable. But, not sure whats the way!

  • 写回答

2条回答 默认 最新

  • douhuan1905 2010-01-15 01:37
    关注

    I'm not really sure I understand what you are trying to do but try looking in to reading raw post data. Here is a blog post that talks about it a little bit.

    http://www.codediesel.com/php/reading-raw-post-data-in-php/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分