Closed pothos closed 6 months ago
One can also do the test with NOUPLOAD=1 ./upload_package /tmp http://localhost:8000 notused 9.9.9
when running printf "HTTP/1.1 200 OK\r\n\r\n" |nc -l -p 8000; printf "HTTP/1.1 200 OK\r\n\r\n" | nc -l -p 8000
as server
As Mathieu found out, his new curl version won't process the empty string being passed to curl as argument, resulting from the no-body case for GET. The empty string was treated as additional URL which was skipped over in the past with a warning but now it's a hard error.
How to use
Testing done
With
I checked that the
get_package_id
shows the error for wrong curl arguments when switching thebody_arg=()
assignment to=(--unknown)
. It now also prints the curl errors when curl hits an HTTP error code which is the case for the final POST in the above test.