Issue 121947 - webdav ucp: set a default user agent
Summary: webdav ucp: set a default user agent
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 3.4.0
Hardware: All All
: P3 Normal (vote)
Target Milestone: 4.0.0
Assignee: Ariel Constenla-Haile
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-24 02:16 UTC by Ariel Constenla-Haile
Modified: 2022-10-28 12:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ariel Constenla-Haile 2013-03-24 02:16:32 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"
Comment 1 SVN Robot 2013-03-24 13:22:15 UTC
"arielch" committed SVN revision 1460360 into trunk:
i121947 - Default User-Agent
Comment 2 Ariel Constenla-Haile 2013-03-24 13:30:29 UTC
Fixed on trunk