Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

How to remove

Setting the User-Agent via

var xhr = Titanium.Network.createHTTPClient();
xhr.setRequestHeader('User-Agent','Mozilla/5.0 (Macintosh; U; 
Intel Mac OS X 10.6; en-US; rv: Gecko/20100202 Firefox/3.5.8');

results in the app sending a User-Agent containing the aforementioned string plus "Appcelerator Titanium/1.0.0 (iPhone Simulator/3.1; iPhone OS; en_US;)".

Is there any way to prevent the User-Agent Header from being tampered with?


Edit: Sorry about the messed-up title, there seems to be no way to fix it… :(

— asked March 17th 2010 by Alexei Matveev
  • iphone
  • mobile
  • network
  • user-agent

1 Answer

  • Accepted Answer

    I have fixed this problem and it will be available in today's 1.1 release. Issue

    — answered March 22nd 2010 by Jeff Haynie
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.