I m developing a gateway script that needs to send info to another provider s server, and I need to debug the code.
Is there a way, on my own Linux + Apache + PHP server to capture the CURL / XML data from this script?
I know with PHP, that I could see for example the $_POST, $_GET or $_REQUEST data in a script, but with CURL I don t actually get to the http://intranet/capture.php script in my browser - so this doesn t work.
Is there any other way, with a script on the server to capture everything that s passed to the server, and dump it to a database / flat file?
I even tried monitoring /var/logs/http/access_log on the Linux server, but it didn t reveal much
So, how can I see what the CURL script does, exactly, as the server sees it?