HTTP request - rr_delete err code 1
-
Hello all,
when i try to delete a gcode file, which contains spaces, i recieve err code 1 and file still exists respectively will not be deleted.
for example:
file = "3dprinting square test.gcode"
sudo curl --silent http://192.168.x.xxx/rr_delete?name=0:/gcodes/$fileTested with Duet2Wifi, Firmware SBC 3.4.4, DuetWiFiServer version 1.27
Thanks!
wbr,
karl -
I expect curl is seeing it as different URLs, that is, your curl command is
curl --silent http://192.168.x.xxx/rr_delete?name=0:/gcodes/3dprinting square test.gcode
so curl is going to URLhttp://192.168.x.xxx/rr_delete?name=0:/gcodes/3dprinting
and then tosquare
and then totest.gcode
. URLs cannot contain spaces.Try
file = "3dprinting%20square%20test.gcode"
Or
file = "3dprinting+square+test.gcode"
(but this is definitely the wrong way to do it, though it might work).