A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and
Go to file
Viktor Szakats 741748e341
autotools: recognize more Linux targets when setting -D_GNU_SOURCE
To set `-D_GNU_SOURCE`.

Required to declare `accept4` on uclibc targets. `host_os` can have
the value `uclinux-uclibcgnueabi` in this case.

Fixing:
```
cf-socket.c: In function 'cf_tcp_accept_connect':
cf-socket.c:2141:18: error: implicit declaration of function 'accept4'; did you mean 'accept'? [-Werror=implicit-function-declaration]
 2141 |     s_accepted = accept4(ctx->sock, (struct sockaddr *) &add, &size,
```

Follow-up to 3d02872be7 #16979

Reported-by: Kadambini Nema
Fixes #17512
Closes #17524
2025-06-03 09:51:41 +02:00
.circleci GHA: update wolfSSL/wolfssl to v5.8.0 2025-04-25 22:34:32 +02:00
.github GHA/non-native: un-ignore tests on OpenBSD, bump to -j8 for NetBSD/FreeBSD 2025-06-02 00:21:52 +02:00
CMake cmake: fix missed version number for multi-pkg-config detections 2025-05-29 06:59:02 +02:00
docs cmdline-docs: mention HTTP resumed uploads to be shaky 2025-06-02 23:23:50 +02:00
include spelling: call it null-terminate consistently 2025-05-30 17:29:45 +02:00
lib ws: tests and fixes 2025-06-02 11:15:38 +02:00
LICENSES copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
m4 misc: we write *an* IPv6 address 2025-05-30 07:53:31 +02:00
packages spelling: call it null-terminate consistently 2025-05-30 17:29:45 +02:00
plan9 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
projects curlx: move version_win32.[ch] to curlx/ 2025-05-08 17:09:32 +02:00
scripts tool_getparam: refactored, simplified 2025-05-28 14:25:32 +02:00
src curl: upload from '.' fix 2025-06-02 12:49:38 +02:00
tests pytest: do not use reserved chars in url queries 2025-06-02 23:17:35 +02:00
winbuild curlx: move version_win32.[ch] to curlx/ 2025-05-08 17:09:32 +02:00
.dir-locals.el copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.git-blame-ignore-revs copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.gitattributes winbuild: MS-DOS batch tidy-ups 2024-07-02 19:26:15 +02:00
.gitignore tidy-up: .gitignore lines mostly 2025-01-27 20:59:46 +01:00
.mailmap ws: tests and fixes 2025-06-02 11:15:38 +02:00
acinclude.m4 configure: fix --disable-rt 2025-04-03 11:10:47 +02:00
appveyor.sh windows: fix builds targeting WinXP, test it in CI 2025-05-22 13:04:28 +02:00
appveyor.yml windows: fix builds targeting WinXP, test it in CI 2025-05-22 13:04:28 +02:00
buildconf copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
CHANGES.md CHANGES: rename to CHANGES.md, no longer generated 2024-08-01 13:37:12 +02:00
CMakeLists.txt spacecheck.pl: check for non-ASCII chars, fix fallouts 2025-05-04 17:26:11 +02:00
configure.ac autotools: recognize more Linux targets when setting -D_GNU_SOURCE 2025-06-03 09:51:41 +02:00
COPYING COPYING: bump copyright year range to 1996 - 2025 2025-01-01 21:12:12 +01:00
curl-config.in curl-config: tidy up, optimize 2024-12-24 01:21:38 +01:00
Dockerfile Dockerfile: update debian:bookworm-slim Docker digest to 90522ee 2025-05-23 23:14:33 +02:00
GIT-INFO.md build: drop tool_hugehelp.c.cvs, tidy up macros, drop buildconf.bat 2025-01-26 14:22:49 +01:00
libcurl.pc.in configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
Makefile.am dist: drop duplicate entry from CMAKE_DIST 2025-04-10 15:01:46 +02:00
README docs: minor grammar fixes 2022-09-29 10:44:12 +02:00
README.md spacecheck.pl: drop more exceptions 2025-05-13 16:01:07 +02:00
RELEASE-NOTES RELEASE-NOTES: synced 2025-06-02 13:02:12 +02:00
renovate.json GHA: drop "3" from openssl names and keys 2024-10-23 19:36:03 +02:00
REUSE.toml projects/Windows: remove wolfSSL from legacy projects 2024-12-22 03:10:35 -05:00
SECURITY.md docs: Clarify OpenSSF Best Practices vs Scorecard 2024-08-22 11:50:20 +02:00

curl logo

curl is a command-line tool for transferring data specified with URL syntax. Learn how to use curl by reading the manpage or everything curl.

Find out how to install curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl manpage to learn how.

Open Source

curl is Open Source and is distributed under an MIT-like license.

Contact

Contact us on a suitable mailing list or use GitHub issues/ pull requests/ discussions.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Source code

Download the latest source from the Git server:

git clone https://github.com/curl/curl.git

Security problems

Report suspected security problems via our HackerOne page and not in public.

Notice

curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.