Linux – curl GET list of files restricted to 1000

bashcurllinux

There are more than 1000 files in a storage server account and when I use curl to display the list of files, output is limited to only first 1000.

Just to test, I had deleted a file showing up in the GET list and then did a GET again, this time curl did display 1000 files with an additional file from full list.

Is there any way to tell curl to display full list instead of limiting to 1000?

Edit:

curl -X GET -u <user>:<passwd> <url-full-path-of-container>

curl version:
curl 7.29.0 (x86_64-redhat-linux-gnu)

I am not sure whether problem is on server side because I dont really have full privileges to check that.. Can it be on server side too?

Best Answer

You should mention the protocol you're been using with curl. The -X command restrict the list to: HTTP, FTP, POP3, IMAP. Which one? Why are you using -X?

Anyway, it's possible that the remote server is limiting the list: curl has no intrinsic internal limit on listing AFAIK.

I'd suggest you to try an interactive session (especially if it's FTP) by using another command line tool or by elevating the debugging level with --verbose option.