
RWS, clear all log sample from documentation fails.

Jorge
✭✭
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
0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings