-O option is not enough to make a wget replacement from curl, because it tries to figure out filename from URL. It would be more convenient if curl could parse - content-disposition header to get initial hint about target filename.
First, curl is not targeted at making a wget replacement so that's not really an argument... (and wget only very recently started to support this header)
This should be relatively easy to implement by using the header callback function.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First, curl is not targeted at making a wget replacement so that's not really an argument... (and wget only very recently started to support this header)
This should be relatively easy to implement by using the header callback function.
This is item 11.1 on the TODO list.
added in 7.20.0