Apache configuration to accept all data
Posted
by ServerDown
on Server Fault
See other posts from Server Fault
or by ServerDown
Published on 2010-04-21T07:32:23Z
Indexed on
2010/04/21
7:43 UTC
Read the original article
Hit count: 308
Hi,
I have apache running on port 7979 to talk with a device that sends data to webserver and later will run php scripts to process and send reply xml.
The problem now is that it sends data like
POST HTTP/1.1
Content-Type:text/xml
Content-Length:369
Followed by XML
When apache sees this it gives a 400 error. Since the device cannot be changed is there any way to accept the full data sent from the device and write to some log? Currently apache simply keeps sending 400 errors back. If there was a way to log the entire xml or create some custom handler for 400 error then the xml could be read by a php script.
Looking forward to solutions.
© Server Fault or respective owner