How to modify user-agent ?

Raptor2153
2011-04-08
2012-08-29
  • Raptor2153
    Raptor2153
    2011-04-08

    Hello,

    (Excuse my poor english)

    Is it possible to modify user-agent of RSSowl's browser in configuration file
    ?

    My society allow only IE8 & FF 3.6 user-agent....

    Thanks !

     
  • You mean the user agent that is sent when rssowl downloads a feed or when it
    accesses a news with the browser? The latter is not possible as RSSOwl is not
    having much control over the browser.

     
  • Raptor2153
    Raptor2153
    2011-04-08

    Thanks for your answer !

    I mean the user agent when it accesses a news with the browser.

    I don't understand, you not have the controle of the RssOwl browser's code ?

     
  • RSSOwl embeds the OS native browser and does not control how the browser
    itself communicates with a website.

     
  • Raptor2153
    Raptor2153
    2011-04-08

    Okay, i understand now !

    I'll try to change this parameter if I can

    Thanks again for your answer.

     
  • Raptor2153
    Raptor2153
    2011-10-31

    Hello.

    I have found a solution for change the browser user-agent, but now i try to
    change the user agent that is sent when rssowl downloads a feed. Could you
    help me ?

    To change user-agent of the browser :

    Add a REG_DWORD nammed "RSSOwl.exe" in
    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet
    Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" and take it "8000" for
    value (decimal).

    Now the browser user the uagent of IE8 on my XP !

     
  • genodeftest
    genodeftest
    2011-10-31

    I'm not really sure but you either have to configure apache commons http (a
    library RSSOwl uses) or you have to change some thing in RSSOwl's source code
    ( org.rssowl.core.internal.connection.DefaultProtocolHandler.internalOpenStrea
    m(); should be the right point to start – you may e.g. set it up after
    initializing the Proxy)

     
  • genodeftest
    genodeftest
    2011-10-31

    The second one can be done by adding

    client.getParams().setParameter("http.useragent", "My Browser");
    

    in

    org.rssowl.core.internal.connection.DefaultProtocolHandler.internalOpenStream();
    

    after line 441 and then recompile RSSOwl.