RobotStudio event

RWS, clear all log sample from documentation fails.

Jorge
Jorge ✭✭
edited April 2022 in Developer Tools
Hello, I'm playing with RWS to learn how it works.
But when I send this command: curl --digest -u "Default User":robotics -X POST "http://localhost/rw/elog?action=clearall<br>

Which is to clear all log message, I got a 415 error from server.
Here is the return of curl command:

But If I use:
curl --digest -u "Default User":robotics -X POST -H "Content-Type: application/x-www-form-urlencoded" -i "http://localhost/rw/elog?action=clearall"<br>

I got 204 code. Every thing ok.

Why I must use Content-Type if the command doesn't send any data?.
I think is not according with this:
/Jorge
Jorge Turiel

Post edited by Maxim Riabichev on