title: How to force user agent on mobile browser
body: <p>Im integrating Magento and Expression Engine. EE is pulling header and footer from Magento. And Magento has a mobile theme for specific agents but EE does not. So I wanna force mobile users to load desktop version of the site so the approach I took was to set desktop user agent in the header. Here were a few methods I've tried. However, things aren't working out. Is there a better solution?</p>
  
  <pre><code>curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1667.0 Safari/537.36');
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$request = new HttpRequest();
  $request-&gt;setHeaders(array('User-Agent' =&gt; 'Mozilla/1.22 (compatible; MSIE 5.01; PalmOS 3.0) EudoraWeb 2')); 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>ini_set('user_agent','Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3');
  </code></pre>