What this proxy supports:
- GET and POST requests (POST was the whole reason for this, since jsonp doesn't support it!)
- HTTP_REFERER check (only accept requests from one server)
- COOKIES, in both directions (setting from the backend and sending from the frontend)
- HEADERS, all of them, in both directions. This means it's a transparent proxy (yay!)
- Dynamic destination (though that's relatively trivial to change), because I don't need it.
- Load Balancing/Cycling, I may add this as a personal exercise in the future.
- Authentication, beyond the referer check, or session (this should be handled by the backend anyway)
Because blogger.com sucks with code, the code is available directly on Google Code, at the following URL:
http://code.google.com/p/php-transparent-proxy/
No comments:
Post a Comment