Apache OpenOffice (AOO) Bugzilla – Issue 121947
webdav ucp: set a default user agent
Last modified: 2022-10-28 12:54:21 UTC
many sites require that HTTP request are sent by clients setting the User-Agent header. OpenOffice should set a default user agent string in every requests, unless client code explicitly has done that (css::ucb::XWebDAVCommandEnvironment::getUserRequestHeaders()). Example of user agent strings: * "Mozilla/5.0 (X11; Linux x86_64; en_US) AppleWebKit/534.34 (KHTML, like Gecko) knetattach/4.9.5 Safari/534.34" * "curl/7.27.0" * "Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0" * "Apache/2.4.3 (Fedora) OpenSSL/1.0.1e-fips PHP/5.4.12 mod_wsgi/3.4 Python/2.7.3 mod_perl/2.0.8-dev Perl/v5.16.2 (internal dummy connection)" * "urlgrabber/3.9.1 yum/3.4.3" The format is defined in http://tools.ietf.org/html/rfc2616#section-14.43 User-Agent = "User-Agent" ":" 1*( product | comment ) Example: User-Agent: CERN-LineMode/2.15 libwww/2.17b3 For OpenOffice, we could use: "OpenOffice/4.0.0" It might be useful to provide information about the libraries: "OpenOffice/4.0.0 apr/1.4.5 apr-util/1.4.1 serf/1.2.0"
"arielch" committed SVN revision 1460360 into trunk: i121947 - Default User-Agent
Fixed on trunk