Netcat / Apache solution to send data to PHP
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 XMLThe 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.
精彩评论