Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#21 Append to client header (without replacing)

open
nobody
None
5
2011-02-09
2011-02-09
No

Hello,
my corporate proxy checks for a particular magic word in the User-Agent string for every connection. If that magic word is not there, the connnection is canceled.
Simply replacing the User-Agent string in server.cfg file was not enough: several web sites offer different HTML code to different web browsers so, in order to get functional HTML code, each web browser has to present its own User-Agent string. WIth different people in my office who use at the same time different browsers, I should have had to install ntlmaps in each different PC.

So, I managed ntlmaps code to simply append the needed magic word to the original User-Agent string.
Below there is a patch file against ntlmaps-0.9.9.0.1 (it is self explanatory). It works like a charm for me!

Discussion