curl-library
help
Date: Tue, 17 Mar 2009 23:51:12 -0700
We want to download a file from FTP server, proxy used is ISA 2006, and the proxy authentication used is NTLM.
And used
curl_set_opt(curl,CURLOPT_PROXYAUTH,CURLAUTH_ANY)
curl_set_opt(curl,CURLOPT_PROXYUSERPWD,password)
Curl_easy_perform(curl);
If Authentication is failed due to wrong user id. Curl is trying to connect more than 100 times to the FTP repository server using proxy.
Please see the attached log:
2009-02-26 16:02:15.687 X mue 6044 naInet
2009-02-26 16:02:15.687 I mue 6044 NaInet FTP Downloading file: SiteStat.xml from FTP Server: 172.16.220.151
2009-02-26 16:02:15.687 I mue 6044 naInet Open URL: ftp://172.16.220.151:21/SiteStat.xml
2009-02-26 16:02:15.687 I mue 6044 naInet Trying to find an usable proxy using IE settings
2009-02-26 16:02:15.718 I mue 6044 naInet Found proxy server with IE settings : 172.16.220.184
2009-02-26 16:02:15.718 X mue 6044 naInet Info:About to connect() to proxy 172.16.220.184 port 8080 (#0)
2009-02-26 16:02:15.718 X mue 6044 naInet
2009-02-26 16:02:15.718 X mue 6044 naInet Info: Trying 172.16.220.184...
2009-02-26 16:02:15.718 X mue 6044 naInet Info:connected
2009-02-26 16:02:15.718 X mue 6044 naInet
2009-02-26 16:02:15.718 X mue 6044 naInet Info:Connected to 172.16.220.184 (172.16.220.184) port 8080 (#0)
2009-02-26 16:02:15.718 X mue 6044 naInet
2009-02-26 16:02:15.718 X mue 6044 naInet => Send header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.718 X mue 6044 naInet Info:Closing connection #0
2009-02-26 16:02:15.718 X mue 6044 naInet
2009-02-26 16:02:15.718 X mue 6044 naInet Info:Issue another request to this URL: 'ftp://root:micmaqa@172.16.220.151:21/SiteStat.xml'
2009-02-26 16:02:15.718 X mue 6044 naInet
2009-02-26 16:02:15.718 X mue 6044 naInet Info:About to connect() to proxy 172.16.220.184 port 8080 (#0)
2009-02-26 16:02:15.718 X mue 6044 naInet
2009-02-26 16:02:15.718 X mue 6044 naInet Info: Trying 172.16.220.184...
2009-02-26 16:02:15.734 X mue 6044 naInet Info:connected
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Connected to 172.16.220.184 (172.16.220.184) port 8080 (#0)
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Proxy auth using NTLM with user 'ruchir'
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet => Send header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Closing connection #0
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Issue another request to this URL: 'ftp://root:micmaqa@172.16.220.151:21/SiteStat.xml'
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:About to connect() to proxy 172.16.220.184 port 8080 (#0)
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info: Trying 172.16.220.184...
2009-02-26 16:02:15.734 X mue 6044 naInet Info:connected
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Connected to 172.16.220.184 (172.16.220.184) port 8080 (#0)
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet => Send header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Closing connection #0
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Issue another request to this URL: 'ftp://root:micmaqa@172.16.220.151:21/SiteStat.xml'
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:About to connect() to proxy 172.16.220.184 port 8080 (#0)
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info: Trying 172.16.220.184...
2009-02-26 16:02:15.734 X mue 6044 naInet Info:connected
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Connected to 172.16.220.184 (172.16.220.184) port 8080 (#0)
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Proxy auth using NTLM with user 'ruchir'
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet => Send header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Closing connection #0
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Issue another request to this URL: 'ftp://root:micmaqa@172.16.220.151:21/SiteStat.xml'
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:About to connect() to proxy 172.16.220.184 port 8080 (#0)
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info: Trying 172.16.220.184...
2009-02-26 16:02:15.734 X mue 6044 naInet Info:connected
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet Info:Connected to 172.16.220.184 (172.16.220.184) port 8080 (#0)
2009-02-26 16:02:15.734 X mue 6044 naInet
2009-02-26 16:02:15.734 X mue 6044 naInet => Send header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.734 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.750 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.750 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.750 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.750 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.750 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.750 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.750 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.750 X mue 6044 naInet <= Recv header
2009-02-26 16:02:15.750 X mue 6044 naInet Info:Closing connection #0
2009-02-26 16:02:15.750 X mue 6044 naInet
2009-02-26 16:02:15.750 X mue 6044 naInet Info:Issue another request to this URL: 'ftp://root:micmaqa@172.16.220.151:21/SiteStat.xml'
2009-02-26 16:02:15.750 X mue 6044 naInet
2009-02-26 16:02:15.750 X mue 6044 naInet Info:About to connect() to proxy 172.16.220.184 port 8080 (#0)
2009-02-26 16:02:15.750 X mue 6044 naInet
2009-02-26 16:02:15.750 X mue 6044 naInet Info: Trying 172.16.220.184...
2009-02-26 16:02:15.750 X mue 6044 naInet Info:connected
2009-02-26 16:02:15.750 X mue 6044 naInet
2009-02-26 16:02:15.750 X mue 6044 naInet Info:Connected to 172.16.220.184 (172.16.220.184) port 8080 (#0)
2009-02-26 16:02:15.750 X mue 6044 naInet
2009-02-26 16:02:15.750 X mue 6044 naInet Info:Proxy auth using NTLM with user 'ruchir'
Please let me know how to solve this issue.
I want to use around 5 retry how to set it.
Regards
Gopal
Received on 2009-03-18