$smwg­Sparql­Repository­Connector­Forced­Http­Version

From Linux Web Expert


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgSparqlRepositoryConnectorForcedHttpVersion
Description Property "Has description" (as page type) with input value "Sets whether CURLOPT_HTTP_VERSION should explicitly be forced for the endpoint communication" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Default setting false
(Other) available settings
true

Allows to explicitly force CURLOPT_HTTP_VERSION for the endpoint communication

Software Semantic MediaWiki
Since version
Until version still available
Configuration Store settings
Keyword sparqlstore · store · sparql


__NOBREADCRUMBLINKS__

$smwgSparqlRepositoryConnectorForcedHttpVersion is a configuration parameter that sets whether CURLOPT_HTTP_VERSION should explicitly be forced for the endpoint communication. It was introduced to mitigate errors being encountered as being described in issue #1306.1 The configuration parameter was introduced in Semantic MediaWiki 2.3.1Released on an unknown date unknown versions of MediaWiki.2

The setting of this configuration parameter should not be changed unless issue #1306 is being encountered1 due to the following note: "... libcurl to use the specific HTTP versions. This is not sensible to do unless you have a good reason."3

Default setting

$smwgSparqlRepositoryConnectorForcedHttpVersion = false;

This means that CURLOPT_HTTP_VERSION will not be forced for the endpoint communication.

Changing the default setting

To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Force CURLOPT_HTTP_VERSION for the endpoint communication
$smwgSparqlRepositoryConnectorForcedHttpVersion = true;

This means that CURLOPT_HTTP_VERSION will be forced for the endpoint communication. Options are available as specified at <curl.haxx.se> (CURLOPT_HTTP_VERSION).4

Do not change this setting unless you know what you are doing!

See also

#scite could not render a citation text for reference "gh:smw:1306" because type "issue" was not assigned to a template.
#scite could not render a citation text for reference "web:curl.haxx.se:CURLOPTHTTPVERSION" because type "reference" was not assigned to a template.

References

  1. a b gh:smw:1306 
  2. ^ gh:smw:2044 
  3. ^ curl.haxx.se:CURLOPTHTTPVERSION 
  4. ^ web:curl.haxx.se:CURLOPTHTTPVERSION