Go to file
Jay Satiro 9dc350b60c tool_homedir: Change GetEnv() to use libcurl's curl_getenv()
- Deduplicate GetEnv() code.

- On Windows change ultimate call to use Windows API
  GetEnvironmentVariable() instead of C runtime getenv().

Prior to this change both libcurl and the tool had their own GetEnv
which over time diverged. Now the tool's GetEnv is a wrapper around
curl_getenv (libcurl API function which is itself a wrapper around
libcurl's GetEnv).

Furthermore this change fixes a bug in that Windows API
GetEnvironmentVariable() is called instead of C runtime getenv() to get
the environment variable since some changes aren't always visible to the
latter.

Reported-by: Christoph M. Becker

Fixes https://github.com/curl/curl/issues/4774
Closes https://github.com/curl/curl/pull/4863
2020-02-12 18:37:31 -05:00
.github github: Instructions to post "uname -a" on Unix systems in issues 2020-02-08 18:13:46 +01:00
CMake cmake: Improve libssh2 check on Windows 2020-01-11 18:53:32 -05:00
docs create-dirs.d: mention the mode 2020-02-12 22:30:45 +01:00
include curl.h: define CURL_WIN32 on windows 2020-01-27 13:02:28 +01:00
lib tool_homedir: Change GetEnv() to use libcurl's curl_getenv() 2020-02-12 18:37:31 -05:00
m4 cleanup: fix typos and wording in docs and comments 2020-02-02 18:43:01 +01:00
packages cleanup: fix typos and wording in docs and comments 2020-02-02 18:43:01 +01:00
plan9
projects checksrc.bat: Fix not being able to run script from the main curl directory 2020-02-07 21:51:36 +00:00
scripts contributors: Also include people who contributed to curl-www 2020-02-05 13:54:16 +01:00
src tool_homedir: Change GetEnv() to use libcurl's curl_getenv() 2020-02-12 18:37:31 -05:00
tests altsvc: keep a copy of the file name to survive handle reset 2020-02-09 22:41:49 +01:00
winbuild winbuild: Document CURL_STATICLIB requirement for static libcurl 2019-12-15 17:31:23 -05:00
.azure-pipelines.yml azure: the macos cmake doesn't need to install cmake 2019-12-16 10:11:49 +01:00
.cirrus.yml cirrus: Add some missing semicolons 2020-02-03 12:27:30 +01:00
.dir-locals.el
.gitattributes
.gitignore
.lgtm.yml
.mailmap RELEASE-NOTES: synced 2020-01-27 09:44:33 +01:00
.travis.yml travis: update non-OpenSSL Linux jobs to Bionic 2020-02-03 14:20:47 +01:00
acinclude.m4
appveyor.yml appveyor: publish artifacts on appveyor 2019-10-30 09:41:38 +01:00
buildconf
buildconf.bat copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
CHANGES
CMakeLists.txt CMake: support specifying the target Windows version 2020-01-20 09:44:19 +01:00
configure.ac configure.ac: fix comments about --with-quiche 2020-02-08 18:12:28 +01:00
COPYING COPYING: it's 2020! 2020-01-03 15:12:46 +01:00
curl-config.in
GIT-INFO
libcurl.pc.in
MacOSX-Framework
Makefile.am TLS: add BearSSL vtls implementation 2019-11-26 08:32:23 +01:00
Makefile.dist
maketgz
README README: mention that the docs is in docs/ 2020-01-27 13:06:45 +01:00
README.md travis: remove "coverage", make it "torture" 2019-12-10 13:39:29 +01:00
RELEASE-NOTES RELEASE-NOTES: synced 2020-02-10 08:49:27 +01:00
SECURITY.md

curl logo

CII Best Practices Coverity passed Travis-CI Build Status AppVeyor Build Status Cirrus Build Status Backers on Open Collective Sponsors on Open Collective Language Grade: C/C++ Codacy Badge Fuzzing Status

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. 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.3 man page to learn how!

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms and similar. If you distribute curl binaries or other binaries that involve libcurl, you might enjoy the LICENSE-MIXING document.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

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

Website

Visit the curl web site for the latest news and downloads.

Git

To download the very latest source from the Git server do this:

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

(you'll get a directory named curl created, filled with the source code)

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. Your logo will show up here with a link to your website. [Become a sponsor]