beforeSend:function(req){req.setRequestHeader ("User-Agent","pokemon")},
inside a $.ajax call sets my user-agent to pokemon. (tested in firefox2) On 4/22/07, Yansky <[EMAIL PROTECTED]> wrote:
Hi, how do I go about specifying the user agent when I'm using ajax in jQuery? I've tried $.get("test.html", { data: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv: 1.8.1.3) Gecko/20070309 Firefox/2.0.0.3' }, function(data){ $('#testDiv').append(data); } ); and $.get("test.html", { User-Agent: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv: 1.8.1.3) Gecko/20070309 Firefox/2.0.0.3' }, function(data){ $('#testDiv').append(data); } ); but I don't think either of those are working.
-- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ