- Jul 10, 2017
-
-
Jay Satiro authored
Prior to this change (SET_)ERRNO mapped to GetLastError/SetLastError for Win32 and regular errno otherwise. I reviewed the code and found no justifiable reason for conflating errno on WIN32 with GetLastError/SetLastError. All Win32 CRTs support errno, and any Win32 multithreaded CRT supports thread-local errno. Fixes https://github.com/curl/curl/issues/895 Closes https://github.com/curl/curl/pull/1589
-
- Jul 09, 2017
-
-
Marcel Raad authored
GCC 4.6.3 on travis complains: smb.c: In function ‘get_posix_time’: smb.c:725:13: error: declaration of ‘time’ shadows a global declaration [-Werror=shadow] Fix this by renaming the variable.
-
- Jul 07, 2017
-
-
Paul Harris authored
Removes BUILD_RELEASE_DEBUG_DIRS since it wasn't used anywhere. Closes #1649
-
- Jul 06, 2017
-
-
-
Daniel Stenberg authored
-
Daniel Stenberg authored
Make the name reflect its use better, and add a short comment describing what it's for.
-
- Jul 05, 2017
-
-
Daniel Stenberg authored
... by checking the POLLIN define, as the header file checks don't work on Windows.
-
Daniel Stenberg authored
inet_pton() exists on Windows and gets used by our cmake builds. Make sure the correct header file is included to avoid compiler warnings. Closes #1639
-
- Jul 04, 2017
-
-
Gisle Vanem authored
Bug: https://curl.haxx.se/mail/lib-2017-07/0005.html Closes #1643
-
Gisle Vanem authored
bug: https://curl.haxx.se/mail/lib-2017-07/0005.html
-
Daniel Stenberg authored
fork, getprotobyname, inet_addr, perror, uname closes #1638
-
Martin Kepplinger authored
On a 64 bit host, sparse says: timeval.c:148:15: warning: constant 0x7fffffffffffffff is so big it is long timeval.c:149:12: warning: constant 0x7fffffffffffffff is so big it is long so let's use long long constant types in order to prevent undesired overflow failures. Bug: https://curl.haxx.se/mail/lib-2017-07/0003.html Closes #1636 Signed-off-by: Martin Kepplinger <martink@posteo.de>
-
- Jul 03, 2017
-
-
Daniel Stenberg authored
... since CURLOPT_URL should follow the same rules as other options: they remain set until changed or cleared. Added test 1551 to verify. Fixes #1631 Closes #1632 Reported-by: Pavel Rochnyak
-
Johannes Schindelin authored
- Change gnutls pointer/int macros to pointer/curl_socket_t. Prior to this change they used long type as well. The size of the `long` data type can be shorter than that of pointer types. This is the case most notably on Windows. If C99 were acceptable, we could simply use `intptr_t` here. But we want to retain C89 compatibility. Simply use the trick of performing pointer arithmetic with the NULL pointer: to convert an integer `i` to a pointer, simply take the address of the `i`th element of a hypothetical character array starting at address NULL. To convert back, simply cast the pointer difference. Thanks to Jay Satiro for the initial modification to use curl_socket_t instead of int/long. Closes #1617 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
-
- Jun 30, 2017
-
-
Max Dymond authored
Add a connection check function to HTTP2 based off RTSP. This causes PINGs to be handled the next time the connection is reused. Closes #1521
-
Max Dymond authored
Add a new type of callback to Curl_handler which performs checks on the connection. Alter RTSP so that it uses this callback to do its own check on connection health.
-
Dmitry Kostjuchenko authored
Fixes #1620
-
Ryan Winograd authored
Prevent `Curl_pgrsTime` from modifying `t_starttransfer` when invoked with `TIMER_STARTTRANSFER` more than once during a single request. When a redirect occurs, this is considered a new request and `t_starttransfer` can be updated to reflect the `t_starttransfer` time of the redirect request. Closes #1616 Bug: https://github.com/curl/curl/pull/1602#issuecomment-310267370
-
- Jun 28, 2017
-
-
Kamil Dudka authored
If libcurl was built with GSS-API support, it unconditionally advertised GSS-API authentication while connecting to a SOCKS5 proxy. This caused problems in environments with improperly configured Kerberos: a stock libcurl failed to connect, despite libcurl built without GSS-API connected fine using username and password. This commit introduces the CURLOPT_SOCKS5_AUTH option to control the allowed methods for SOCKS5 authentication at run time. Note that a new option was preferred over reusing CURLOPT_PROXYAUTH for compatibility reasons because the set of authentication methods allowed by default was different for HTTP and SOCKS5 proxies. Bug: https://curl.haxx.se/mail/lib-2017-01/0005.html Closes https://github.com/curl/curl/pull/1454
-
Kamil Dudka authored
-
Kamil Dudka authored
... to make it obvious what the data is used for
-
- Jun 24, 2017
-
-
Daniel Stenberg authored
follow-up to 64ed44a8 to fix test 500 failures
-
- Jun 23, 2017
-
-
Daniel Stenberg authored
-
- Jun 21, 2017
-
-
Daniel Stenberg authored
... and CURLOPT_REQUEST_TARGET instead of CURLOPT_STRIP_PATH_SLASH. This option instead provides the full "alternative" target to use in the request, instead of extracting the path from the URL. Test 1298 and 1299 updated accordingly. Idea-by: Evert Pot Suggestion: https://daniel.haxx.se/blog/2017/06/19/options-with-curl/comment-page-1/#comment-18373 Closes #1593
-
- Jun 20, 2017
-
-
Marcel Raad authored
remote_scope_id is only used when both HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID and ENABLE_IPV6 are defined instead of only one of them.
-
- Jun 19, 2017
-
-
Daniel Stenberg authored
... to enable sending "OPTIONS *" which wasn't possible previously. This option currently only works for HTTP. Added test cases 1298 + 1299 to verify Fixes #1280 Closes #1462
-
Daniel Stenberg authored
This change introduces new alternatives for the existing six curl_easy_getinfo() options that return sizes or speeds as doubles. The new versions are named like the old ones but with an appended '_T': CURLINFO_CONTENT_LENGTH_DOWNLOAD_T CURLINFO_CONTENT_LENGTH_UPLOAD_T CURLINFO_SIZE_DOWNLOAD_T CURLINFO_SIZE_UPLOAD_T CURLINFO_SPEED_DOWNLOAD_T CURLINFO_SPEED_UPLOAD_T Closes #1511
-
Daniel Stenberg authored
The list was freed incorrectly since the llist refactor of cbae73e1. Added test 1550 to verify that it works and avoid future regressions. Reported-by: Pascal Terjan Fixes #1584 Closes #1585
-
- Jun 18, 2017
-
-
Daniel Stenberg authored
torture mode with test 1021 found it
-
Marcel Raad authored
After deff7de0, the build without CURL_DISABLE_PROXY and CURL_DISABLE_HTTP was failing because of missing includes.
-
Marcel Raad authored
With CURL_DISABLE_PROXY or CURL_DISABLE_HTTP, GCC complained about a missing prototype for Curl_connect_free.
-
- Jun 16, 2017
-
-
Marcel Raad authored
The configure-based build also has this in addition to -Wall. Closes https://github.com/curl/curl/pull/1578
-
Daniel Stenberg authored
Regression since 5113ad04. ... and remove 'flaky' from test 1061 again Closes #1579
-
Daniel Stenberg authored
... the previous code would reset the header length wrongly (since 5113ad04). This makes test 1060 reliable again. Also: make sws send even smaller chunks of data to increase the likeliness of this happening.
-
Jay Satiro authored
Bug: https://github.com/curl/curl/issues/1254 Closes #1546
-
Jay Satiro authored
- Move the logic to detect a Windows drive letter prefix (eg c: in c:foo) into a function-like macro. Closes https://github.com/curl/curl/pull/1571
-
Jay Satiro authored
- No longer allow partial downloads of certdata. Prior to this change partial downloads were (erroneously?) allowed since only the server code was checked to be 200. Bug: https://github.com/curl/curl/pull/1577 Reported-by: Matteo B.
-
- Jun 15, 2017
-
-
Daniel Stenberg authored
Reported-by: Dan Fandrich
-
Daniel Stenberg authored
... all other non-HTTP protocol schemes are now defaulting to "tunnel trough" mode if a HTTP proxy is specified. In reality there are no HTTP proxies out there that allow those other schemes. Assisted-by: Ray Satiro, Michael Kaufmann Closes #1505
-