
i_time = 2;

s_request = '{"jsonrpc":"2.0","method":"hello","id":0}';

s_IP = 'http://httpbin.org/anything';     

s_Key   = {'Access-Control-Allow-Origin','*';...
           'Accept', 'application/json, */*'};
                      
options = weboptions_java('KeyName',s_Key(:,1)', ...
                          'KeyValue',s_Key(:,2)',...
                          'RequestMethod','post',...
                          'HeaderFields', {'Content-Type','application/json'},...
                          'Timeout',i_time);

                          
res  = webwrite_java(s_IP, s_request, options)

                      
                      
