Hi all,

My problem is not directly related to haproxy.

Background
My task is to record a sequence of http requests from user to a particular 
site. I'm going to do it via tsung-recorder [1]. In short, it is a proxy-
server, and user should change his proxy settings to record a sequence. I want 
to avoid changing any user's settings: if user wants to record requests to 
target_site, I'll give him a link to my server target_site.example.com, which 
is configured to record and forward user requests to the target_site.

Problem
Tsung proxy wants absoluteURI [2], and I have to rewrite client's request 
header somehow:

from 

GET /test HTTP/1.1
Host: example.com

to the

GET http://example.com/test HTTP/1.1
Host: example.com

 I thought that I can use some frontends like haproxy or nginx, but looks like 
nginx can't do it. Is there any way to do it with haproxy or other software?

[1] http://tsung.erlang-projects.org/ 
[2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2

Reply via email to