Create a Request from a String

Matthieu Tourne matthieu.tourne at gmail.com
Tue May 25 09:51:05 MSD 2010


Hi,

I'm trying to store requests that comes in (let's call it request A), and I
want to be able to "replay" them later, when another query comes in with a
specific argument (request B).
I can store the request to memcache, and get it back later. But I can't
figure out how to recreate a query from a string.

The only way I can think about would be to use an upstream module with the
create_request method, but I would like to avoid duplicating most of the
proxy module,
and I don't necessarily want to send the saved query to an upstream.

So while processing request B, I get the saved request A as a string. Is
there at that point a way to create a request from that string like if it
was going through ngx_http_process_request_line() ?

Thank you,

Matthieu.

-- 
Matthieu Tourne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100524/a1bed54f/attachment.html>


More information about the nginx mailing list