Enter PHP, libcurl and the untameable spirit of Doing Things on the Cheap (a recurring theme here). A half-assed PHP reverse proxy seems easy to write. Collect target URL and POST data (if any), fire a CURL request to the intended target, pass the response along. And indeed, a web search quickly reveals a few quick and dirty implementations. Here's one. Here's another. The need is out there, a quick and dirty implementation is entirely possible, so here they go.
And yet it seems like I'm about to put together yet another one. Here are my requirements that those Q&D proxies don't meet:
- POST data in arbitrary format (not just forms)
- PHP session support (general purpose cookies not necessary)
- Methods other than GET/POST
Update: I went ahead and wrote one.
No comments:
Post a Comment