cancel
Showing results for 
Search instead for 
Did you mean: 

SA12 Web client TYPE HTTP:POST 8192 bytes limit

Former Member
2,914

Hello, I am testing SQL Anywhere 12 12.0.1.3605 web client procedure but when the size of the parameters exceeds 8192 bytes appears the following error : SQLSTATE : WW052, Error Message : HTTP request failed, Status code '406 Not Acceptable'. The same test on 902 version works with size parameters over 1MB and I guess that depends on the value of the PHP configuration directive POST_MAX_SIZE which is usually set to 8 MB. The following are the procedures to test and if the file 'test.txt' exceeds 8192 bytes gives an error:

ALTER PROCEDURE "DBA"."test_http_post"( in filename char(256),in filedata long varchar ) 
url 'HTTP://user:pass@www.domain.com/test/test.php' type 'HTTP:POST'

begin
  declare t_file long varchar;
  set t_file = xp_read_file('test.txt');
  call dba.test_http_post('newfile.txt',t_file)
end


How can I post a text greater than 8192 bytes in one session ?

Regards, Veselin

Accepted Solutions (0)

Answers (0)