开发者

Netcat / Apache solution to send data to PHP

开发者 https://www.devze.com 2022-12-27 11:17 出处:网络
I have this device that sends XML data to a webserver in format as follows POST HTTP/1.1 Content-Type:text/xml

I have this device that sends XML data to a webserver in format as follows

POST HTTP/1.1

Content-Type:text/xml

Content-Length:369

Followed by XML

The problem here is that apache simply sends 400 error for this and does not work.

Is there anyway to create netcat to read xml and send to php? Any other solution welcome! Is it better to run php to listen to Port? in that case will mul开发者_如何学编程tiple requests at the same time work?


Done and dusted. managed to do this with socket programming on php functionblog.com/?p=67=1 All works great and ignores all errors with non conforming client calls as above.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号