openhatch / oh-mainline

The code that runs openhatch.org
http://openhatch.org
GNU Affero General Public License v3.0
242 stars 310 forks source link

curl: Remote file name has no length! #1685

Closed sarbazx closed 9 years ago

sarbazx commented 9 years ago

Hi, in mission diffing individual files i having error when downloading files by curl in terminal on linux mint 17. it showing curl: Remote file name has no length! attached screen shot. error

Deborah-Digges commented 9 years ago

The command you used seems to be incorrect. Copy the following:

 curl -0 http://openhatch.org/missions/diffpatch/diffsingle/nutty-pancake.txt -o original.txt

Note it's

curl -0(zero) [url of remote file] -o(small O) output-file.

The zero tells curl to use http1.0 and the small oh is used to save the file to an output file.

ehashman commented 9 years ago

Thanks for your excellent response here, @Deborah-Digges :D

slrslr commented 2 years ago

I think that this error can have also the cause where curl gets unknown switch. For example you use -retry instead of --retry.