http-client-procs.tcl

  • last updated 9 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Cleanup of external binaries: always use "util::which" to resolve binaries

Background: it is important to always use the same binaries of some

programs. This is important for security reasons, consistency, and

configurability (some operating systems have read-only file systems,

which might be on the path and should be avoided for some operations).

skip "-url" in "export_vars -url" since it is the default

  1. … 11 more files in changeset.
Make use of new API "ad_mktmpdir" and "ad_opentmpfile" instead of "ad_tmpnam"

  1. … 7 more files in changeset.
Centralize retrieval of the test URL

  1. … 5 more files in changeset.
Extend regression test

Fix self-inflicted bug: one should indeed be able to specify the same form var multiple time, test the behavior for the future

  1. … 2 more files in changeset.
Declare proc coverage

  1. … 1 more file in changeset.
fix header generation

since the headers are set in a loop, "ns_set put" is incorrect

since it is additive. "ns_set update" is correct.

complete listing of covered procs in test cases

  1. … 14 more files in changeset.
make listing of tested procs more complete

  1. … 18 more files in changeset.
make end of options explicit

  1. … 42 more files in changeset.
Tear down a lot of boilerplate used to support native HTTP api on Naviserver versions < 4.99.15, which will now fallback to curl

  1. … 1 more file in changeset.
Fallback to 'util_current_location' when 'ad_url' returns an empty string, such in cases when the SystemUrl is not set, on the util_http_json_encoding testcase

added missing editor hints

  1. … 20 more files in changeset.
Improve test results visibility

Fix util_http_json_encoding automated test:

- fix typo

- make sure file is spooled when sampling GET request by setting max body size to 0

New test for json and utf-8 encoding against Postman Echo webservice (https://docs.postman-echo.com)

Add 'ad_tmpdir' and 'ad_url' to the list of covered procs of different testcases

  1. … 2 more files in changeset.
improve spelling

  1. … 6 more files in changeset.
Make sure files exist

No need to rollback as we don't touch the db

Add an extra use case when UTF-8 encoding is stated explicitly

Expand the test about util::http and json

Basic tests for util::http:: JSON encoding behavior

file http-client-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./http-client-procs.tcl