On 11/16/2017 08:39 PM, Amos Jeffries wrote: > On 17/11/17 15:09, Richard Peeters wrote: >> I have a requirement to forward proxy an opaque stream of data. One of >> the servers (acting as a client -A- to SQUID ) will use the CONNECT >> method to connect to SQUID (on server B) and squid will then proxy >> this data for A. >> >> My question is I want to pass metadata from A to B which B will strip >> out before proxying the data outbound, and I cannot find a way to do >> that. > "metadata" in HTTP just means headers. > > For custom hop-by-hop headers your client application needs to use > Connection: header to control their removal by the recieving next-hop > HTTP agent. See <https://tools.ietf.org/html/rfc7230#section-6.1>. > The custom header field-values can be accessed using the various > request/reply header regex ACL types, same as any header. Also, if Squid (B) does not talk to another proxy and instead connects to the origin server directly, then no Connection listing is required for the CONNECT request headers. In this case, the CONNECT request received by B is the only HTTP request; it is not forwarded anywhere. Alex. _______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users