Php reading xml in post request

前端 未结 2 1751
没有蜡笔的小新
没有蜡笔的小新 2021-01-21 15:07

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 i

相关标签:
2条回答
  • 2021-01-21 15:42

    If you want to send POST data from PHP, you could use cURL. You can't set $_POST or $_REQUEST at the sending side and expect them to be set at the receiving end as well.

    Have a look at this question: Send XML over HTTPS/POST via cURL?

    0 讨论(0)
  • 2021-01-21 15:43

    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/

    0 讨论(0)
提交回复
热议问题