on 2013 Jul 30 3:40 AM
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) endHow can I post a text greater than 8192 bytes in one session ?
Regards, Veselin
Request clarification before answering.
User | Count |
---|---|
75 | |
30 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.