fre 2009-11-27 klockan 09:08 -0600 skrev Jason Hodges: > The "Web Content Provider" that serves ringtones, games, etc to our > subscribers requires that we have an http header inserted as the users > surf their site. The header is x-msisdn. The value should be the > subscriber's phone number (mdn). We have been unsuccessful at finding > a good/solid solution for retrieving the mdn and inserting an http > header. The mdn (in our case) is stored in a database, so the > information is easily available. However, we do not know how to make > squid request the mdn and inject the http request header. Right. And I can understand your frustration. Squid as out of the box do not easily support this. I had an unpublished patch for Squid-2.6 that enabled external acls to return additional header details which would suit your problem nicely, but it's somewhat lost in time by now I am afraid. I guess the currently supported method is to design an ICAP server or eCAP module doing the needed request transform. Or alternatively resurrect that old external acl functionality. Wasn't hard to implement (an hour including testing I think). Might make sense to extend this to url rewriters as well. > Here are some details: > 1. The mdn is stored in a database with an association to the ip address the subscriber was assigned. Optionally this same information is stored in a flat text file (radius accounting detail log) > 2. We only want to inject this http header for certain URLs. How often do the IP assignments change? Or most importanly, how long time needs to pass before an IP is reused for another customer? Regards Henrik