After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 534144 - xsltproc does not send HTTP Accept header
xsltproc does not send HTTP Accept header
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-21 06:11 UTC by Paul Millar
Modified: 2021-07-05 13:22 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Paul Millar 2008-05-21 06:11:18 UTC
When an application requests a file from an HTTP server, it can specify which type(s) of file it can accept.  This is achieved through the HTTP Accept header.  A client supplying an HTTP Accept header is a simple form of content negotiation: if the client accepts only content of a particular MIME-type, the server may be able to adjust the document to match.

When processing a document with src URI prefix "http", xsltproc fetches the document from the corresponding HTTP server.  However, when it does this, it sends no Accept header as part of its request (tested with Debian xsltproc 1.1.19-1).  Although xsltproc requires the content it receives to be XML, it does not mention this to the server.

It would be nice if xsltproc were to support setting the MIME type via the HTTP Accept header.  This could be either an optional feature, disabled by default, to be backwards compatible, but even enabling it by default should work on well-configured servers.  My limited knowledge of MIME suggests that "application/xml" would be the correct MIME type for xsltproc to use.

Cheers,

Paul.
Comment 1 Nick Wellnhofer 2012-11-03 15:54:29 UTC
Loading files via HTTP is handled by libxml2.
Comment 2 GNOME Infrastructure Team 2021-07-05 13:22:11 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/libxml2/-/issues/

Thank you for your understanding and your help.