Netcat / Apache solution to send data to PHP

Posted by ToughPal on Stack Overflow See other posts from Stack Overflow or by ToughPal
Published on 2010-04-21T10:16:27Z Indexed on 2010/05/27 15:21 UTC
Read the original article Hit count: 238

Filed under:
|
|

Hi,

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 multiple requests at the same time work?

© Stack Overflow or respective owner

Related posts about php

Related posts about apache