http-client-procs.tcl

  • last updated 8 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- fix redirection in native mode:

A redirect from http might point to https, which in turn

might not be configured. So we have to go through

util::http::request again.

Modified http api to return response headers to the caller

- use ad_tmpnam instead of ns_tmpnam since the latter is deprecated

Resorting to passing through filesystem when sending body in post requests: too much concerns related to escaping in a suitable way for every possible shell (windows, linux...)

Merging back to HEAD branch oacs-5-8 (using tag vg-merge-oacs-5-8-from-20141027).

  1. … 2547 more files in changeset.
- add commata in documentation

Added version checking for curl and used it to verify if --post303 option is available.

- util::http::*: since spool file is server provided, use option

"-spool" to indicate that spooling is intended. The actual name of

the spool file is retuned in the "file" component of the dict.

- fix spool file logic for ns_http/ns_ssl

- allow spooling as well for curl

- drop "-depth" for the toplevel interface, since it is used for

iteration on the (private) implementation level

- set max_depth per default to 10 to handle redirects automatically

- add function util::http::available to check, whether util::http::* can be called in the current configuration

- activate spooling to files for versions of naviserver supporting it

- add code to convert timeout value to a value suitable for the

underlying implementation (NaviServer or curl)

- document timeout values

- base deprecated code on util::http::*

- moved util_link_responding_p and util_get_http_status to

http-client-procs and based it on util::http::*.

- marked util_link_responding_p and util_get_http_status as

deprecated, moved a new version into the util::* namespace

and turned positional arguments into non-positional

  1. … 1 more file in changeset.
- follow documentation conventions

- use proper version comparison to avoid surprises, when alnum comparison leads to different results

- add missing backslashes in util::http::native::request for redirects

- make "GET" default method

- change encoding to unix style (as in other procs)

    • -1511
    • +1515
    ./http-client-procs.tcl
Committed new API for HTTP client functionality, moved old HTTP client procs to the new file and set them as deprecated.

  1. … 1 more file in changeset.
file http-client-procs.tcl was initially added on branch oacs-5-8.

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