-O -J --output-dir --retry --no-clobber # Server-side HTTP/1.1 200 OK Content-Length: 6 Connection: close Content-Disposition: inline; filename="MMM%TESTNUMBERMMM" Content-Type: text/html -foo- # Client-side http http --no-clobber, --retry and --output-dir identifying a file http://%HOSTIP:%HTTPPORT/ --no-clobber --output-dir %LOGDIR/present -OJ --retry 1 --retry-all-errors present GET / HTTP/1.1 Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* GET / HTTP/1.1 Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* # it fails because it cannot create the output file 23