[squid-users] redirect program - returning two urls

From: Zé Luís <zeluis@dont-contact.us>
Date: Mon, 15 Jul 2002 10:50:19 -0300

Hi everybody.

I am working with redirect_program.
I wrote a program c that it receives the parameters from squid.
My doubt is this: when I make this:

printf("%s %s %s %s\n",url_user,src_address,ident,"GET"); fflush(stdout);

it functions correctly.
Of this form I return ulr that the user requested.
It is possible I to always return:

- the URL that the user requested
and
- another URL

in the same solicitation.

Some thing thus:

printf("%s %s %s %s\n",url_user,src_address,ident, "GET");
printf("%s %s %s %s\n","http://my_url",src_address,ident, "GET");
fflush(stdout);

Thanks a lot.

Zé Luís
Received on Mon Jul 15 2002 - 07:50:09 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:15 MST