[clue-tech] HTTP method specifications
Matt Gushee
matt at gushee.net
Fri Nov 25 15:13:32 MST 2005
Jed S. Baer wrote:
> Well ... wonderful wording on my part. My hypothesis at this point is that
> some twit(s) is simply sending up a mime-encapsulated SMTP envelope as
> POST data. So I need two things. 1) how to get access to the raw POST
> data, and 2) sufficient info on how POST data is (supposed to be)
> implemented to be able to take it apart. Might be that it's simple enough
> that I can just look at it and see what's there. Might be that I'm
> approaching it from the wrong end too. The PHP $_POST array isn't useful
> for this, as it's contents are post- processing by PHP.
I see. Well, first of all I believe that Apache passes all the request
data to CGI handlers (even if they are in-process, as PHP normally is,
they still implement the Common Gateway *Interface*) as environment
variables ... precisely what path the data takes I don't know, but the
Apache docs undoubtedly will tell you that.
Beyond that, for a preliminary analysis, this might help:
http://httpd.apache.org/docs/2.0/mod/mod_dumpio.html
And for production, I am 99% sure that it's possible to set up some sort
of filter as an Apache handler, that will dump its output back to Apache
to be sent to the normal application ... though I've never had to do
anything like that.
Seems like you ought to be able to do something in PHP, but looking at
the docs for the HTTP and Apache modules, there doesn't seem to be
anything relevant to this problem.
--
Matt Gushee
The Reluctant Geek: http://matt.gushee.net/rg/
_______________________________________________
CLUE-tech mailing list
CLUE-tech at cluedenver.org
http://cluedenver.org/mailman/listinfo/clue-tech
More information about the clue-tech
mailing list