Time for action – exploring the message flow between Squid and redirectors

Let's try to understand the message flow between Squid and the redirector (or rewriter) programs.

  1. A line containing the fields shown previously (separated by spaces) is passed by Squid to the URL redirector program using a single line for each client request. Once the helper program has finished processing the fields, it must write one of the following messages on the standard output. Please note that the new line (\n) at the end of the message is important and must not be omitted:
  2. The line containing the fields is read by the URL redirector program from the standard input.
  3. After reading the line from the standard input, the redirector (or rewriter) program can process the ...

Get Squid Proxy Server 3.1 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.