Cristian Morales Vega
f21cc62832
cmake: make CURL_ZLIB a tri-state variable
...
By differentiating between ON and AUTO it can make a missing zlib
library a hard error when CURL_ZLIB=ON is used.
Reviewed-by: Jakub Zakrzewski
Closes #6221
Fixes #6173
2020-11-19 13:38:47 +01:00
Daniel Stenberg
73b63876b1
quiche: remove 'static' from local buffer
...
For thread-safety
Closes #6223
2020-11-19 13:34:44 +01:00
Daniel Stenberg
33a0b7ad73
KNOWN_BUGS: cmake: libspsl is not supported
...
Closes #6214
2020-11-18 22:51:08 +01:00
Daniel Stenberg
bf9e14159c
KNOWN_BUGS: cmake autodetects cert paths when cross-compiling
...
Closes #6178
2020-11-18 22:51:08 +01:00
Daniel Stenberg
529423a270
KNOWN_BUGS: cmake build doesn't fail if zlib not found
...
Closes #6173
2020-11-18 22:51:08 +01:00
Daniel Stenberg
192099333b
KNOWN_BUGS: cmake libcurl.pc uses absolute library paths
...
Closes #6169
2020-11-18 22:51:08 +01:00
Daniel Stenberg
ad4b608263
KNOWN_BUGS: cmake: generated .pc file contains strange entries
...
Closes #6167
2020-11-18 22:51:08 +01:00
Daniel Stenberg
943cc00aad
KNOWN_BUGS: cmake uses -lpthread instead of Threads::Threads
...
Closes #6166
2020-11-18 22:51:08 +01:00
Daniel Stenberg
cfd42e3283
KNOWN_BUGS: cmake build in Linux links libcurl to libdl
...
Closes #6165
2020-11-18 22:51:08 +01:00
Daniel Stenberg
94979161c8
KNOWN_BUGS: make a new section for cmake topics
...
Closes #6219
2020-11-18 22:50:58 +01:00
Emil Engler
4e65f69b0d
cirrus: build with FreeBSD 12.2 in CirrusCI
...
Closes #6211
2020-11-17 12:18:45 +01:00
Marc Hoersken
24f909cebd
tests/*server.py: close log file after each log line
...
Make sure the log file is not locked once a test has
finished and align with the behavior of our logmsg.
Rename curl_test_data.py to be a general util.py.
Format and sort Python imports with isort/VSCode.
Bug: #6058
Closes #6206
2020-11-14 21:32:33 +01:00
Daniel Stenberg
03822c3a6d
CURLOPT_HSTS.3: document the file format
...
Closes #6205
2020-11-13 23:28:58 +01:00
Daniel Stenberg
df2af7dd81
RELEASE-NOTES: synced
2020-11-13 13:32:37 +01:00
Daniel Stenberg
87614768ce
release-notes.pl: detect #[number] better for Ref: etc
2020-11-13 13:17:16 +01:00
Daniel Stenberg
0362944a2e
curl: only warn not fail, if not finding the home dir
...
... as there's no good reason to error out completely.
Reported-by: Andreas Fischer
Fixes #6200
Closes #6201
2020-11-13 11:32:46 +01:00
Daniel Stenberg
71ec4e7d76
httpput-postfields.c: new example doing PUT with POSTFIELDS
...
Proposed-by: Jeroen Ooms
Ref: #6186
Closes #6188
2020-11-13 09:20:57 +01:00
Tobias Hieta
760e854348
cmake: correctly handle linker flags for static libs
...
curl CMake was setting the the EXE flags for static libraries which made
the /manifest:no flag ended up when linking the static library, which is
not a valid flag for lib.exe or llvm-lib.exe and caused llvm-lib to exit
with an error.
The better way to handle this is to make sure that we pass the correct
linker flags to CMAKE_STATIC_LINKER_FLAGS instead.
Reviewed-by: Jakub Zakrzewski
Closes #6195
2020-11-10 23:41:29 +01:00
Tobias Hieta
fd5f35ef0b
cmake: don't pass -fvisibility=hidden to clang-cl on Windows
...
When using clang-cl on windows -fvisibility=hidden is not an known
argument. Instead it behaves exactly like MSVC in this case. So let's
make sure we take that path.
In CMake clang-cl sets both CMAKE_C_COMPILER_ID=clang and MSVC get's
defined since clang-cl is basically a MSVC emulator. So guarding like we
do in this patch seems logical.
Reviewed-by: Jakub Zakrzewski
Closes #6194
2020-11-10 23:40:33 +01:00
Daniel Stenberg
c49d205ae0
http_proxy: use enum with state names for 'keepon'
...
To make the code clearer, change the 'keepon' from an int to an enum
with better state names.
Reported-by: Niranjan Hasabnis
Bug: https://curl.se/mail/lib-2020-11/0026.html
Closes #6193
2020-11-10 01:01:56 +01:00
Daniel Stenberg
7ae59838f0
curl_easy_escape: limit output string length to 3 * max input
...
... instead of the limiting it to just the max input size. As every
input byte can be expanded to 3 output bytes, this could limit the input
string to 2.66 MB instead of the intended 8 MB.
Reported-by: Marc Schlatter
Closes #6192
2020-11-09 23:01:06 +01:00
Daniel Stenberg
8b151cb944
docs: document the 8MB input string limit
...
for curl_easy_escape and curl_easy_setopt()
The limit is there to catch mistakes and abuse. It is meant to be large
enough to allow virtually all "fine" use cases.
Reported-by: Marc Schlatter
Fixes #6190
Closes #6191
2020-11-09 17:28:45 +01:00
Daniel Stenberg
3c5c6e7477
mqttd: fclose test file when done
...
Reported-by: Marc Hörsken
Reviewed-by: Jay Satiro
Bug: #6058
Closes #6189
2020-11-09 17:25:22 +01:00
Daniel Stenberg
ec48bee3f8
RELEASE-NOTES: synced
2020-11-09 10:15:27 +01:00
Daniel Stenberg
5ee44566b6
THANKS-filter: ignore autobuild links
2020-11-09 10:15:15 +01:00
Daniel Stenberg
259c70a930
Revert "libcurl.pc: make it relocatable"
...
This reverts commit 3862c37b63
.
That fix should either be done differently or with an option.
Reported-by: asavah on github
Fixes #6157
Closes #6183
2020-11-09 09:13:06 +01:00
Daniel Stenberg
fa6bbbe167
examples/httpput: remove use of CURLOPT_PUT
...
It is deprecated and unnecessary since it already sets CURLOPT_UPLOAD.
Reported-by: Jeroen Ooms
Fixes #6186
Closes #6187
2020-11-09 08:25:14 +01:00
Daniel Stenberg
a570f7cd09
Curl_pgrsStartNow: init speed limit time stamps at start
...
By setting the speed limit time stamps unconditionally at transfer
start, we can start off a transfer without speed limits and yet allow
them to get set during transfer and have an effect.
Reported-by: Kael1117 on github
Fixes #6162
Closes #6184
2020-11-09 08:19:09 +01:00
Daniel Stenberg
5d57a79929
ngtcp2: adapt to recent nghttp3 updates
...
'reset_stream' was added to the nghttp3_conn_callbacks struct
Closes #6185
2020-11-09 08:17:38 +01:00
Daniel Stenberg
374329d773
configure: pass -pthread to Libs.private for pkg-config
...
Reported-by: Cristian Morales Vega
Fixes #6168
Closes #6181
2020-11-07 18:25:21 +01:00
Daniel Stenberg
5d903ce3a3
altsvc: minimize variable scope and avoid "DEAD_STORE"
...
Closes #6182
2020-11-07 18:10:21 +01:00
Daniel Stenberg
65bc682524
FAQ: remove "Why is there a HTTP/1.1 in my HTTP/2 request?"
...
This hasn't been the case for a while now, remove.
2020-11-06 09:28:49 +01:00
Daniel Stenberg
3864ad37e1
FAQ: refresh "Why do I get "certificate verify failed"
...
Add more details, remove references to ancient curl version.
2020-11-06 09:16:06 +01:00
Daniel Stenberg
ee644bc8b3
test493: verify --hsts upgrade and that %{url_effective} reflects that
...
Closes #6175
2020-11-06 08:22:34 +01:00
Daniel Stenberg
20558ff269
url: make sure an HSTS upgrade updates URL and scheme correctly
...
Closes #6175
2020-11-06 08:22:31 +01:00
Daniel Stenberg
f7e72f4d5c
tool_operate: set HSTS with CURLOPT_HSTS to pass on filename
...
Closes #6175
2020-11-06 08:22:28 +01:00
Daniel Stenberg
6ee57c8bdd
hsts: remove debug code leftovers
...
Closes #6175
2020-11-06 08:22:14 +01:00
Daniel Stenberg
490879ea89
FAQ: refreshed
...
- remove a few ancient questions
- add configure with static libs question
- updated wording in several places
- lowercased curl
Closes #6177
2020-11-05 16:54:12 +01:00
Daniel Gustafsson
afddaa6dec
examples: fix comment syntax
...
Commit ac0a88fd2
accidentally added a stray character outside of the
comment which broke compilation. Fix by removing.
Reported-by: autobuild https://curl.se/dev/log.cgi?id=20201105084306-12742
2020-11-05 09:54:12 +01:00
Daniel Gustafsson
085f91036c
hsts: Remove pointless call to free in errorpath
...
The line variable will always be NULL in the error path, so remove
the free call since it's pointless.
Closes #6170
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
2020-11-05 09:42:38 +01:00
Daniel Gustafsson
afbf7d260c
docs: Fix various typos in documentation
...
Closes #6171
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
2020-11-05 09:36:24 +01:00
Daniel Stenberg
ac0a88fd25
copyright: fix year ranges
...
Follow-up from 4d2f800677
2020-11-05 08:22:10 +01:00
Daniel Stenberg
fbbbf5aae0
HISTORY: the new domain
2020-11-04 23:59:53 +01:00
Daniel Stenberg
4d2f800677
curl.se: new home
...
Closes #6172
2020-11-04 23:59:47 +01:00
Daniel Stenberg
0673cb4d2d
KNOWN_BUGS: FTPS with Schannel times out file list operation
...
Reported-by: bobmitchell1956 on github
Closes #5284
2020-11-04 23:56:12 +01:00
Daniel Stenberg
ce980c255e
KNOWN_BUGS: SMB tests fail with Python 2
...
Reported-by: Jay Satiro
Closes #5983
2020-11-04 23:49:31 +01:00
Daniel Stenberg
5cb475de99
KNOWN_BUGS: LDAPS with NSS is slow
...
Reported-by: nosajsnikta on github
Closes #5874
2020-11-04 23:43:43 +01:00
Sergei Nikulov
e41ba40deb
travis: use ninja-build for CMake builds
...
Added package ninja-build to environment
Use ninja to speed up CMake builds
Closes #6077
2020-11-04 12:44:00 +03:00
Harry Sintonen
8bdee98187
rtsp: error out on empty Session ID, unified the code
2020-11-04 08:14:36 +01:00
Harry Sintonen
77a7b93c25
rtsp: fixed the RTST Session ID mismatch in test 570
...
Closes #6161
2020-11-04 08:14:16 +01:00