Curl User Agent question about documentation |
Hi,
According to documentation Here the syntaxe to specify a user agent is Code: 'user_agent' => 'WDQS-example PHP/'. PHP_VERSION, This syntaxe with WikiDATA SPARQL query always result a response of 403 As soon as i use this syntaxe Code: 'User-Agent' => 'WDQS-example PHP/'. PHP_VERSION, I get a response 200 with results for my sparql request. I have made hundreds succesfull request to WikiPEDIA with the syntaxe 'user_agent'. Is it a syntaxe error from the documentation or it's on the WIKIDATA Sparql api side ? This is the code i'm using to send request PHP Code: /** |
Messages In This Thread |
Curl User Agent question about documentation - by eelisland - 03-06-2022, 02:19 PM
RE: Curl User Agent question about documentation - by kenjis - 03-06-2022, 05:05 PM
RE: Curl User Agent question about documentation - by eelisland - 03-07-2022, 02:28 AM
|