I'm trying to debug a program which sends a (soap) request to a remote server. The server keeps responding with some weird message, so I started to wonder what I'm sending exactly to that server.
I thought I'd create a small script to which I direct the program's requests and this script should store the exact request in a file, so I can inspect what request was sent.
Getting the parsed parameters is dead simple, that's what we always do and luckily you do never have to do any parsing yourself. Unfortunately every piece of information seems to be about accessing the parsed data, never the unparsed bytes.
I'm not even sure the http-headers reacht perl or are stripped away by Apache.
Is there any way to access the original request data?
Preferably including the http header and all?