Arasu5201 / android-xmlrpc

Automatically exported from code.google.com/p/android-xmlrpc
0 stars 0 forks source link

Ability to specify http User-Agent #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

It would be nice if it was possible to set the User-Agent HTTP-header for 
requests made from android-xmlrpc.

In my project I have added the following method to the XMLRPCClient class:

    public void setUserAgent(String userAgent) {
        postMethod.removeHeaders("User-Agent");
        postMethod.addHeader("User-Agent", userAgent);
    }

Original issue reported on code.google.com by mortenho...@gmail.com on 28 Mar 2011 at 7:43

GoogleCodeExporter commented 8 years ago
This is a nice suggestion. We'll get this in shortly!

Original comment by jon@sprig.gs on 28 Mar 2011 at 9:17

GoogleCodeExporter commented 8 years ago
Committed to the tree under Revision 25. Please pull the latest version and see 
whether it matches (+/-) your changes?

Thanks

Original comment by jon@sprig.gs on 28 Mar 2011 at 7:39

GoogleCodeExporter commented 8 years ago
Works beautifully! Thank you! :)

/ Morten

Original comment by mortenho...@gmail.com on 29 Mar 2011 at 8:20

GoogleCodeExporter commented 8 years ago

Original comment by jon@sprig.gs on 29 Mar 2011 at 8:22