Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Configure cURL options for improved security and performance #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thomasvincent
Copy link
Owner

@thomasvincent thomasvincent commented May 18, 2024

•	Redirect output to a log file in ~/Downloads/curl.log
•	Require HTTPS protocol for connections
•	Verify SSL certificate of the peer and host
•	Ensure certificate status check with OCSP Stapling
•	Use secure cipher suites and elliptic curves for ECDHE
•	Automatically set the HTTP Referer header
•	Set timeout for connection to 30 seconds
•	Limit maximum operation time to 120 seconds
•	Retry on transient errors with 3 retries and 5 seconds delay
•	Retry if connection is refused
•	Set custom user-agent string to "curl/7.75.0 (darwin20.3.0)"
•	Store and read cookies in ~/.curl-cookies.txt
•	Request compressed content where possible
•	Set maximum of 5 redirections
•	Limit data transfer rate to 1 Megabyte per second
•	Allow up to 4 parallel transfers per command line and 8 globally
•	Use remote timestamp for downloaded files
•	Include custom headers for preferred languages, encodings, and disable caching.

	•	Redirect output to a log file in ~/Downloads/curl.log
	•	Require HTTPS protocol for connections
	•	Verify SSL certificate of the peer and host
	•	Ensure certificate status check with OCSP Stapling
	•	Use secure cipher suites and elliptic curves for ECDHE
	•	Automatically set the HTTP Referer header
	•	Set timeout for connection to 30 seconds
	•	Limit maximum operation time to 120 seconds
	•	Retry on transient errors with 3 retries and 5 seconds delay
	•	Retry if connection is refused
	•	Set custom user-agent string to "curl/7.75.0 (darwin20.3.0)"
	•	Store and read cookies in ~/.curl-cookies.txt
	•	Request compressed content where possible
	•	Set maximum of 5 redirections
	•	Limit data transfer rate to 1 Megabyte per second
	•	Allow up to 4 parallel transfers per command line and 8 globally
	•	Use remote timestamp for downloaded files
	•	Include custom headers for preferred languages, encodings, and disable caching.

Signed-off-by: Thomas Vincent <[email protected]>
@thomasvincent thomasvincent self-assigned this May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant