I'm using curl to upload files to a remote server. If I added to the remote server iptables
rule to deny access from client, I want the client to keep trying to reconnect to the remote server. After enabling verbose mode I see that after the 3rd time the upload timed out, curl will not retry for the 4th time to connect to the remote server. Why is that and how to change it? Is there an option for that in curl_easy_setopt
?
相关问题
- Google Apps Script: testing doPost() with cURL
- Can I skip certificate verification oracle utl_htt
- Requests Library Force Use of HTTP/1.1 On HTTPS Pr
- Change curl SSL Version
- What means data-urlencode in CURL?
相关文章
- Programmatically scraping a response header within
- Getting the list of files over FTP
- PHP 7 FTP extension is not loaded in Windows 7
- What to do with extra HTTP header from proxy?
- Unit/Integration testing FTP access
- How can I immediately cancel a curl operation?
- Get Amazon MWS results to Json or Xml and elaborat
- POST csv/Text file using cURL
This is from curl's man page. Forgive me if I misunderstood.
This happens automatically,
curl
will try to reconnect every time the requested operation will timeout. Add something likecurl_easy_setopt(m_curl, CURLOPT_TIMEOUT, 5L)
to add timeout option. The problem I have reported was actually a bug in my code.