1. 03 11月, 2022 1 次提交
  2. 24 6月, 2021 1 次提交
  3. 08 6月, 2021 1 次提交
  4. 06 5月, 2021 1 次提交
  5. 05 5月, 2021 1 次提交
  6. 15 4月, 2021 1 次提交
  7. 11 3月, 2021 1 次提交
  8. 09 2月, 2021 1 次提交
    • D
      ftp: add 'prefer_ascii' to the transfer state struct · 115c9e27
      Daniel Stenberg 提交于
      ... and make sure the code never updates 'set.prefer_ascii' as it breaks
      handle reuse which should use the setting as the user specified it.
      
      Added test 1569 to verify: it first makes an FTP transfer with ';type=A'
      and then another without type on the same handle and the second should
      then use binary. Previously, curl failed this.
      
      Closes #6578
      115c9e27
  9. 31 1月, 2021 1 次提交
    • D
      http: improve AWS HTTP v4 Signature auth · 796ce293
      Dmitry Wagin 提交于
      - Add support services without region and service prefixes in
      the URL endpoint (ex. Min.IO, GCP, Yandex Cloud, Mail.Ru Cloud Solutions, etc)
      by providing region and service parameters via aws-sigv4 option.
      - Add [:region[:service]] suffix to aws-sigv4 option;
      - Fix memory allocation errors.
      - Refactor memory management.
      - Use Curl_http_method instead() STRING_CUSTOMREQUEST.
      - Refactor canonical headers generating.
      - Remove repeated sha256_to_hex() usage.
      - Add some docs fixes.
      - Add some codestyle fixes.
      - Add overloaded strndup() for debug - curl_dbg_strndup().
      - Update tests.
      
      Closes #6524
      796ce293
  10. 16 1月, 2021 1 次提交
  11. 15 1月, 2021 1 次提交
  12. 03 1月, 2021 1 次提交
    • D
      httpauth: make multi-request auth work with custom port · 648712ee
      Daniel Stenberg 提交于
      When doing HTTP authentication and a port number set with CURLOPT_PORT,
      the code would previously have the URL's port number override as if it
      had been a redirect to an absolute URL.
      
      Added test 1568 to verify.
      
      Reported-by: UrsusArctos on github
      Fixes #6397
      Closes #6400
      648712ee
  13. 21 12月, 2020 1 次提交
  14. 18 12月, 2020 1 次提交
  15. 17 12月, 2020 1 次提交
    • D
      test1522: add debug tracing · ff4d2c2a
      Daniel Stenberg 提交于
      I used this to track down some issues and I figured I could just as well
      keep this extra logging in here for future needs.
      
      Closes #6331
      ff4d2c2a
  16. 05 11月, 2020 1 次提交
  17. 03 11月, 2020 1 次提交
  18. 14 9月, 2020 2 次提交
    • D
      ftp: a 550 response to SIZE returns CURLE_REMOTE_FILE_NOT_FOUND · 7ea2e1d0
      Daniel Stenberg 提交于
      This is primarily interesting for cases where CURLOPT_NOBODY is set as
      previously curl would not return an error for this case.
      
      MDTM getting 550 now also returns this error (it returned
      CURLE_FTP_COULDNT_RETR_FILE before) in order to unify return codes for
      missing files across protocols and specific FTP commands.
      
      libcurl already returns error on a 550 as a MDTM response (when
      CURLOPT_FILETIME is set). If CURLOPT_NOBODY is not set, an error would
      happen subsequently anyway since the RETR command would fail.
      
      Add test 1913 and 1914 to verify. Updated several tests accordingly due
      to the updated SIZE behavior.
      
      Reported-by: Tomas Berger
      Fixes #5953
      Closes #5957
      7ea2e1d0
    • D
      curl: use curlx_dynbuf for realloc when loading config files · 47dd957d
      Daniel Stenberg 提交于
      ... fixes an integer overflow at the same time.
      
      Reported-by: ihsinme on github
      Assisted-by: Jay Satiro
      
      Closes #5946
      47dd957d
  19. 09 9月, 2020 1 次提交
  20. 07 9月, 2020 2 次提交
  21. 06 9月, 2020 2 次提交
    • D
      test1541: remove since it is a known bug · 8ca54a03
      Daniel Stenberg 提交于
      A shared connection cache is not thread-safe is a known issue. Stop
      testing this until we believe this issue is addressed. Reduces
      occasional test failures we don't care about.
      
      The test code in lib1541.c is left in git to allow us to restore it when
      we get to fix this.
      
      Closes #5922
      8ca54a03
    • D
      tests: remove pipelining tests · e50a877d
      Daniel Stenberg 提交于
      Remove the tests 530, 584, 1900, 1901, 1902, 1903 and 2033. They were
      previously disabled.
      
      The Pipelining code was removed from curl in commit 2f44e94e,
      April 2019.
      
      Closes #5921
      e50a877d
  22. 29 8月, 2020 1 次提交
  23. 27 8月, 2020 1 次提交
    • D
      options: API for meta-data about easy options · 6ebe63fa
      Daniel Stenberg 提交于
       const struct curl_easyoption *curl_easy_option_by_name(const char *name);
      
       const struct curl_easyoption *curl_easy_option_by_id (CURLoption id);
      
       const struct curl_easyoption *
       curl_easy_option_next(const struct curl_easyoption *prev);
      
      The purpose is to provide detailed enough information to allow for
      example libcurl bindings to get option information at run-time about
      what easy options that exist and what arguments they expect.
      
      Assisted-by: Jeroen Ooms
      Closes #5365
      6ebe63fa
  24. 30 7月, 2020 1 次提交
  25. 27 7月, 2020 1 次提交
  26. 12 7月, 2020 1 次提交
  27. 26 6月, 2020 1 次提交
  28. 25 6月, 2020 1 次提交
  29. 30 5月, 2020 1 次提交
    • M
      tests/libtest: fix undefined reference to 'curlx_win32_fopen' · c0d4faf8
      Marc Hoersken 提交于
      Since curl_setup.h now makes use of curlx_win32_fopen for Win32
      builds with USE_WIN32_LARGE_FILES or USE_WIN32_SMALL_FILES defined,
      we need to include the relevant files for tests using fopen,
      because the libtest sources are also including curl_setup.h
      
      Reviewed-by: Marcel Raad
      Reviewed-by: Daniel Stenberg
      
      Follow up to #3784 (ffdddb45)
      Closes #5475
      c0d4faf8
  30. 04 5月, 2020 1 次提交
    • D
      dynbuf: introduce internal generic dynamic buffer functions · ed35d659
      Daniel Stenberg 提交于
      A common set of functions instead of many separate implementations for
      creating buffers that can grow when appending data to them. Existing
      functionality has been ported over.
      
      In my early basic testing, the total number of allocations seem at
      roughly the same amount as before, possibly a few less.
      
      See docs/DYNBUF.md for a description of the API.
      
      Closes #5300
      ed35d659
  31. 24 3月, 2020 1 次提交
  32. 08 3月, 2020 3 次提交
    • P
      mime: fix the binary encoder to handle large data properly · e5b366c0
      Patrick Monnerat 提交于
      New test 666 checks this is effective.
      As upload buffer size is significant in this kind of tests, shorten it
      in similar test 652.
      
      Fixes #4860
      Closes #4833
      Reported-by: RuurdBeerstra on github
      e5b366c0
    • P
      mime: do not perform more than one read in a row · 1e4cb333
      Patrick Monnerat 提交于
      Input buffer filling may delay the data sending if data reads are slow.
      To overcome this problem, file and callback data reads do not accumulate
      in buffer anymore. All other data (memory data and mime framing) are
      considered as fast and still concatenated in buffer.
      As this may highly impact performance in terms of data overhead, an early
      end of part data check is added to spare a read call.
      When encoding a part's data, an encoder may require more bytes than made
      available by a single read. In this case, the above rule does not apply
      and reads are performed until the encoder is able to deliver some data.
      
      Tests 643, 644, 645, 650 and 654 have been adapted to the output data
      changes, with test data size reduced to avoid the boredom of long lists of
      1-byte chunks in verification data.
      New test 667 checks mimepost using single-byte read callback with encoder.
      New test 668 checks the end of part data early detection.
      
      Fixes #4826
      Reported-by: MrdUkk on github
      1e4cb333
    • P
      mime: latch last read callback status. · 96972ec1
      Patrick Monnerat 提交于
      In case a read callback returns a status (pause, abort, eof,
      error) instead of a byte count, drain the bytes read so far but
      remember this status for further processing.
      Takes care of not losing data when pausing, and properly resume a
      paused mime structure when requested.
      New tests 670-673 check unpausing cases, with easy or multi
      interface and mime or form api.
      
      Fixes #4813
      Reported-by: MrdUkk on github
      96972ec1
  33. 02 3月, 2020 3 次提交