Hello, I am testing SQL Anywhere 12.0.1.4104 and 16.0.0.1948 web client procedure. When the length of the parameters exceeds 8191 bytes the following error appears "SQLSTATE=WW052 Error Message : HTTP request failed. Status code '403 Forbidden'" SQL Anywhere 9 version works with parameters length over 1MB. Using HEADER clause to set the Content-Length I can reduse below 8192 bytes but not above. Perhaps this limitation is set in the database and I wonder whether it can be increased. create or replace procedure "DBA"."test_post"(in "filename" char(256),in "filedata" long varchar) url 'HTTP://www.domain.com/test/test.php' type 'HTTP:POST'; test.php <? $filename = $_POST['filename']; echo "FileName : $filename"; ?> |
Try the MaxRequestSize protocol parameter: -xs HTTP(port=<port#>;MaxRequestSize=<size> |
There is no limitation on the length of a parameter... What is your web service definition?
Veselin, did the answer below help you?