cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Rest 0 command not supported

From: Sasikala Raju <sasikalaraju_at_commvault.com>
Date: Wed, 20 Apr 2016 07:27:32 +0000

> We are facing this error while getting the size of a file . Why do we need

> REST 0 command after size ?



This comment in the code explains it:



     /* Determine if server can respond to REST command and therefore

        whether it supports range */



I'm assuing you ased for a "NOBODY" transfer.



> Lib curl version : 7.21



Approaching six years old: "curl version 7.21.0 was released on June 16 2010.

The following 18 security problems are known to exist in this version."



   https://curl.haxx.se/docs/vuln-7.21.0.html

            Yes we used no body request.

                        curl_easy_setopt<http://ncvs.commvault.com/source/s?defs=curl_easy_setopt&project=win>(m_curlContext<http://ncvs.commvault.com/source/s?defs=m_curlContext&project=win>->m_curl<http://ncvs.commvault.com/source/s?defs=m_curl&project=win>, CURLOPT_NOBODY<http://ncvs.commvault.com/source/s?defs=CURLOPT_NOBODY&project=win>, 1L);
            curl_easy_setopt<http://ncvs.commvault.com/source/s?defs=curl_easy_setopt&project=win>(m_curlContext<http://ncvs.commvault.com/source/s?defs=m_curlContext&project=win>->m_curl<http://ncvs.commvault.com/source/s?defs=m_curl&project=win>, CURLOPT_HEADERFUNCTION<http://ncvs.commvault.com/source/s?defs=CURLOPT_HEADERFUNCTION&project=win>, getContentSize<http://ncvs.commvault.com/source/s?defs=getContentSize&project=win>);
            curl_easy_setopt<http://ncvs.commvault.com/source/s?defs=curl_easy_setopt&project=win>(m_curlContext<http://ncvs.commvault.com/source/s?defs=m_curlContext&project=win>->m_curl<http://ncvs.commvault.com/source/s?defs=m_curl&project=win>, CURLOPT_HEADER<http://ncvs.commvault.com/source/s?defs=CURLOPT_HEADER&project=win>, 0L);

            It’s not happening in all machines. In our test machines server responds for REST 0 command.
            Server IP used in both machine is same

                        5632 1604 04/20 04:38:10 6055 0000: REST 0
5632 1604 04/20 04:38:10 6055 <= Recv header, 70 bytes (0x46)
                        5632 1604 04/20 04:38:10 6055 0000: 350 Restarting at 0, Execute get, put or append to initiate tran (In our test machine)

            And I doubt if any Anti-Virus blocking the FTP REST command on the client side. There are few AVs does that.

http://support.filecatalyst.com/index.php?/Knowledgebase/Article/View/191/0/unable-to-resume-ftp-transfer-using-the-ftp-client
http://kb.fortinet.com/kb/documentLink.do?externalID=10834


Thanks,
Sasikala Raju.
From: Sasikala Raju
Sent: Wednesday, April 20, 2016 7:46 AM
To: curl-library_at_cool.haxx.se
Subject: Rest 0 command not supported

Hello team ,

We are facing this error while getting the size of a file . Why do we need REST 0 command after size ?

REST command is not supported by server ? Or we have sent REST command in a place where it should not have ?

 Please let me how to proceed here .
Lib curl version : 7.21

4004 1fa4 04/19 15:52:16 104 0000: SIZE WinX64_11.0.0B80-SP3_SP3-HotFix-102.exe
4004 1fa4 04/19 15:52:16 104 0000: 213 903488<tel:213%20903488>
4004 1fa4 04/19 15:52:16 104 0000: REST 0
4004 1fa4 04/19 15:52:17 104 0000: 500 Command not supported.
4004 1fa4 04/19 15:52:17 104 0000: SIZE WinX64_11.0.0B80-SP3_SP3-HotFix-102.exe
4004 1fa4 04/19 15:52:17 104 0000: 213 903488<tel:213%20903488>
4004 1fa4 04/19 15:52:17 104 0000: REST 0
4004 1fa4 04/19 15:52:17 104 0000: 500 Command not supported.

Thanks,
Sasikala Raju.



***************************Legal Disclaimer***************************
"This communication may contain confidential and privileged material for the
sole use of the intended recipient. Any unauthorized review, use or distribution
by others is strictly prohibited. If you have received the message by mistake,
please advise the sender by reply email and delete the message. Thank you."
**********************************************************************

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-20