Hi all,
this is an oddity on Servoy 7.4.x:
We want to post some data to a web service, using simple http authentication from a Servoy Smart client (Java 7, Windows):
This line of code
response = poster.executeRequest("myusername","myverysecretpassword");
This works fine we get a 201 Created response which we are expecting.
But if we check the logs of the web service, we see a failed attempt
Filter chain halted as #<Proc:0xbb52da8@/ .......... http_authentication.rb:112> rendered or redirected
Completed 401 Unauthorized in 4.7ms (ActiveRecord: 2.1ms)
Then a couple of seconds later we see
Completed 201 Created in 753.2ms
Servoy reports ignores the 401 and reports the 201.
We can see from the data we post that the post comes from the correct IP address, they have identical data. I can’t see if both requests include username/password.
Any ideas? Does the http plugin try to post without authentication first?
Christian