Choosing the HTTP Method (GET / POST) on a SPARQLProtocolSession ?

9 views
Skip to first unread message

Thomas Francart

unread,
Jul 2, 2021, 3:50:07 AMJul 2
to rdf4j...@googlegroups.com
Hello

Can I force POST or GET to be used on a SPARQLProtocolSession ? From the doc I see POST is used when the query length exceeds a maximum size. But how can I choose the method explicitly ?

Thanks
Thomas

--

Thomas Francart - SPARNA
Web de données | Architecture de l'information | Accès aux connaissances
blog :
blog.sparna.fr, site : sparna.fr, linkedin : fr.linkedin.com/in/thomasfrancart
tel : 
 +33 (0)6.71.11.25.97
, skype : francartthomas

Jeen Broekstra

unread,
Jul 2, 2021, 8:02:57 PMJul 2
to RDF4J Users
You can force this one way or the other by configuring the maximum url length via a system property, e.g. by setting -Drdf4j.sparql.url.maxlength=0 you force it to always use POST, and by setting it to some very large value you effectively force it to always use GET.

Cheers,

Jeen
--
You received this message because you are subscribed to the Google Groups "RDF4J Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdf4j-users...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages