Welcome! Log In Create A New Profile

Advanced

Create a Request from a String

Matthieu Tourne
May 25, 2010 01:56AM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Create a Request from a String

Matthieu Tourne May 25, 2010 01:56AM

Re: Create a Request from a String

Piotr Sikora May 25, 2010 04:24AM

Re: Create a Request from a String

Matthieu Tourne May 25, 2010 02:18PM

Re: Create a Request from a String

agentzh May 25, 2010 09:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready