…nnection (through CURLOPT_TIMEOUT). Also, always try to set SO_KEEPALIVE on curl sockets, but don't worry if it fails.
… -C option. But, if -C is provided, ignore the environment variable.
http.c: * instead of using get_range_block and get_more_data to pull data from the server, callbacks range_fetch_read_http_headers and range_fetch_read_http_content will process data pushed from libcurl. * no longer buffers anything except lines in MIME multipart delimiters (those are buffered because curl might split a line when pushing data to us, and it's easier to parse line by line) * removed proxy code; libcurl handles it. * issues: - pipelining no longer works - http authentication no longer works; not sure how to deal with the fact that zsync lets you set a different user/pass for each hostname but libcurl does not (probably either drop that feature, or turn off CURLOPT_FOLLOWLOCATION and instead loop around watching CURLINFO_REDIRECT_URL) - also see XXX comments above http_get for behavior changes. url.c: * get_http_host_port no longer needed client.c: * replace call to http.c:get_range_block + http.c:zsync_receive_data with http.c:range_fetch_perform * add -v (verbose) option to put libcurl in verbose mode * add -K (insecure) and -C (ca cert) options to help control HTTPS fetches * exit(1) if -A is provided, since HTTP auth doesn't work right now TODO: * use same curl handle for control file + actual download (for reuse of the connection and SSL session) * ignore MIME multipart preamble and epilogue, if present * restore fine-grained progress meter * restore support for HTTP pipelining * restore support for HTTP authentication * restore old behavior noted in XXX comments above http_get
…ch_remaining_blocks_http hits eof
…t, http and zsyncmake code.
… local data - useful for scripts. -s remains as a deprecated synonym (but no warning).
Update copyright notices, add notices missing from some files.
…irectly is not a good approach. Move config.h to the top of the source files, so it can affect system headers. Fix some other header issues. Update configure.in for current automake.