[wxWidgets/wxWidgets] c3cb1c: Allow reusing POST data when using wxWebRequestCURL

0 views
Skip to first unread message

VZ

unread,
Dec 23, 2025, 8:27:24 AM12/23/25
to wx-co...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/wxWidgets/wxWidgets
Commit: c3cb1c1d1b5d00a4e58f8dc4f244cd1583360592
https://github.com/wxWidgets/wxWidgets/commit/c3cb1c1d1b5d00a4e58f8dc4f244cd1583360592
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2025-12-22 (Mon, 22 Dec 2025)

Changed paths:
M include/wx/private/webrequest_curl.h
M src/common/webrequest_curl.cpp
M tests/net/webrequest.cpp

Log Message:
-----------
Allow reusing POST data when using wxWebRequestCURL

Set seek callback to allow libcurl to reuse the data being uploaded when
it has to redo the HTTP request, e.g. because of redirection after a 301
or resubmitting it with correct authentication data after a 401.

Add a test checking that this works correctly, although it has to be
disabled for WinHTTP for now as it doesn't handle 307/308 redirects
automatically (see #26046).


Commit: 3c31dd54130ba9b0f9528fe22aff1a9de0b3b251
https://github.com/wxWidgets/wxWidgets/commit/3c31dd54130ba9b0f9528fe22aff1a9de0b3b251
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2025-12-22 (Mon, 22 Dec 2025)

Changed paths:
M include/wx/webrequest.h
M interface/wx/webrequest.h

Log Message:
-----------
Add wxWebCredentials::IsOk()

Add a trivial accessor to make testing for whether we are using a
default constructed or initialized object simpler.


Commit: 2be7895e8ad623741285a0bac553f57c123fe6be
https://github.com/wxWidgets/wxWidgets/commit/2be7895e8ad623741285a0bac553f57c123fe6be
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2025-12-22 (Mon, 22 Dec 2025)

Changed paths:
M include/wx/private/webrequest.h
M include/wx/webrequest.h
M interface/wx/webrequest.h
M src/common/webrequest.cpp
M src/common/webrequest_curl.cpp
M src/msw/webrequest_winhttp.cpp
M src/osx/webrequest_urlsession.mm
M tests/net/webrequest.cpp

Log Message:
-----------
Add support for preemptively using "Basic" HTTP authentication

Add UseBasicAuth() which allows to avoid an extra round trip to the
server due to trying to access a protected URL without providing the
credentials first and only sending them in response to 401 response.

For libcurl, simply set authentication method to CURLAUTH_BASIC and let
the library handle everything. For the other backends, add the required
"Authorization" header ourselves, as they don't seem to have any support
for doing preemptive authentication on their own.


Commit: 7fd95a639e5efa458edd9d8087162477d76082e4
https://github.com/wxWidgets/wxWidgets/commit/7fd95a639e5efa458edd9d8087162477d76082e4
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2025-12-23 (Tue, 23 Dec 2025)

Changed paths:
M configure
M configure.ac
M src/tiff

Log Message:
-----------
Fix using built-in libjpeg from built-in libtiff

This didn't work before, usually just silently disabling JPEG support in
libtiff because libjpeg couldn't be found, but sometimes also resulting
in build errors due to libtiff configure detecting a newer version of
libjpeg available in the system and then trying to use its features
(such as "dual 8/12 bit mode", whatever it is, in libjpeg-turbo > 3)
when building using the actually used version resulting in build errors.


Commit: f3aa944b01dc6a5fa5d4d9a44ffa1ba74be509f0
https://github.com/wxWidgets/wxWidgets/commit/f3aa944b01dc6a5fa5d4d9a44ffa1ba74be509f0
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2025-12-23 (Tue, 23 Dec 2025)

Changed paths:
M include/wx/private/webrequest.h
M include/wx/private/webrequest_curl.h
M include/wx/webrequest.h
M interface/wx/webrequest.h
M src/common/webrequest.cpp
M src/common/webrequest_curl.cpp
M src/msw/webrequest_winhttp.cpp
M src/osx/webrequest_urlsession.mm
M tests/net/webrequest.cpp

Log Message:
-----------
Merge branch 'webrequest-improve-redirect'

Improvements to wxWebRequest handling of multiple requests (due to
redirects and/or authorization required).

See #26048.


Compare: https://github.com/wxWidgets/wxWidgets/compare/fb06c6da179a...f3aa944b01dc

To unsubscribe from these emails, change your notification settings at https://github.com/wxWidgets/wxWidgets/settings/notifications
Reply all
Reply to author
Forward
0 new messages