Hi there,
I've installed and configured xml-rpc properly on my OACS box. Yesterday, everything was working fine but today the request started to return HTTP 302.
What is even more curious is the behavior of it. It returns 302 in the first attempt, but the second returns HTTP200. See logs bellow.
Whether running NaviServer directly on port 80, or bellow NGINX(80) and NS(8000). it returns the same behavior.
What would be blocking the very first access to return 302, if yesterday was working just fine?
The RPC2 method is very simple, just for testing purposes.
catch {xmlrpc::remote_call http://1c.1contact.ch/RPC2 ws_annonces.soma -int 3 -int 11 } result
ad_proc -public ws_robot.sum {
a
b
} {
It returns the sum result of a and b
} {
ns_log Notice "Running ad_proc 1c_annonces.sum ..."
set result [expr ${a} + ${b}]
ns_log Notice "RESULT $result"
return $result
}
Best wishes,
Iuri
[07/Apr/2017:14:35:02][27312.7fc6f5ffb700][-sched:idle0-] Notice: starting
[07/Apr/2017:14:35:03][27312.7fc6f77fe700][-driver:nssock_v4-] Notice: ... sockAccept accepted 3 connections
[07/Apr/2017:14:35:03][27312.7fc6f77fe700][-driver:nssock_v4-] Notice: ... sockAccept accepted 2 connections
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: Running TCL script test_ws.tcl
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Warning: ns_httpopen POST http://1c.1contact.ch/RPC2 d3 30 {ws_annonces.soma311} is deprecated. Use 'ns_http' instead!
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: sock32 sock33 d4
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: HERE1
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: HERE2 - sock33
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: HERE3 - d4
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: HERE4
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: HERE 302
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Warning: ns_httpopen POST http://1c.1contact.ch/RPC2/ d4 30 {ws_annonces.soma311} is deprecated. Use 'ns_http' instead!
[07/Apr/2017:14:35:03][27312.7fc70e221700][-conn:1contact:0-] Notice: Running ad_proc 1c_annonces.soma ...
[07/Apr/2017:14:35:03][27312.7fc70e221700][-conn:1contact:0-] Notice: RESULT 14
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: sock32 sock33 d5
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: HERE1
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: HERE2 - sock33
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: HERE3 - d5
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: HERE4
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: HERE 200
[07/Apr/2017:14:35:03][27312.7fc70da20700][-conn:1contact:1-] Notice: 14