I would expect POST method be larger than GET method. Why isn't it?
Anyway is there a way to increase the post size? I want to submit really
large queries which take just a few seconds to answer(Not intensive
queries.)
On Wed, Apr 1, 2009 at 9:25 AM, Jens Lehmann <
lehm...@informatik.uni-leipzig.d
Hello,
Ahmet YILDIRIM wrote:
> What are those parameters? I don't know. when I set the sparql_query
> length to 633(in utf8 encoding) and ecode it with urlencode and use curl
> to post it, it works. Longer queries doesn't work.
>
> Can the problem be because of another reason rather than query l
Hi Ahmet,
Taking the sample query and code you provide I have been able to see
the error being reported by the PHP client. Having turned on internal
debugging on the Virtuoso server hosting DBpedia I do not see the
query hitting the server so I assume the problem is in the PHP
client. So
What are those parameters? I don't know. when I set the sparql_query length
to 633(in utf8 encoding) and ecode it with urlencode and use curl to post
it, it works. Longer queries doesn't work.
Can the problem be because of another reason rather than query length?
On Tue, Mar 31, 2009 at 8:40 PM,
Hello,
Ahmet YILDIRIM wrote:
>
> Some aspect of the HTTP Request is invalid. Possible problems:
>
>* Missing or unknown request method
>* Missing URL
>* Missing HTTP Identifier (HTTP/1.0)
>* Request is too large
>* Content-Length missing for POST or PUT requests
>* Illeg
Thank you for answering my question.
When I apply the code below:
$sparql_query=" SELECT ?label WHERE { ?label ?a ?b} ";
$c = curl_init();
$headers = array("Accept: application/sparql-results+html");
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
curl_setopt($c, CURLOPT_URL, "http://dbpedia.org/
Hello,
Jens Lehmann schrieb:
> Hello,
>
> $headers = array("Content-Type: ".$this->contentType);
> $c = curl_init();
> curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
> curl_setopt($c, CURLOPT_URL, $url);
> curl_setopt($c, CURLOPT_HTTPHEADER, $headers);
> $contents = curl_exec($c);
> curl_cl
Hello,
Ahmet YILDIRIM wrote:
> Hi,
>
> I want to query information using sparql endpoint in a php script.
> I could only use get method to submit my query. I want to use larger
> queries to submit using post method. I tried something with curl
> extension but always got invalid request error.
>
Hi,
I want to query information using sparql endpoint in a php script.
I could only use get method to submit my query. I want to use larger
queries to submit using post method. I tried something with curl
extension but always got invalid request error.
Anyone did this before? Can you help me?
he