monitoring-plugins/plugins
Ahmet Oeztuerk e0b30cc6e8 append the query string from parsed uri
Check the UriUriA object, and if query string exists append it to the
new_url. Only appends the query part, fragments are still not appended

Function redir parses the new location header value using the
uriParseUriA function already, which populates the query field. This
field was already being printed, but it was not being appended to the
new_url during its construction.

Redirection chain of check_curl --onredirect=follow now mimics the chain
of check_http --onredirect=follow. Tested on the url:
mail.google.com/chat
2025-12-04 17:03:57 +01:00
..
check_apt.d check_apt: implement new output 2025-09-15 12:40:24 +02:00
check_by_ssh.d check_by_ssh: Implement modern output functionality 2025-11-16 14:36:10 +01:00
check_cluster.d check_cluster: new output functionality 2025-09-17 11:25:13 +02:00
check_curl.d Fix/check curl sticky redir (#2188) 2025-11-28 12:21:08 +01:00
check_dbi.d check_dbi: more refactoring for coherence and simplification 2025-10-30 23:58:38 +01:00
check_dig.d check_dig: add -E/--require-flags and -X/--forbid-flags (#2165) 2025-11-29 15:24:52 +01:00
check_disk.d Run clang-format again 2025-09-15 12:59:37 +02:00
check_dns.d Refactor check_dns 2025-03-09 12:04:40 +01:00
check_fping.d Run clang-format again 2025-09-15 12:59:37 +02:00
check_game.d Refactor check_game 2025-03-07 15:58:30 +01:00
check_hpjd.d Refactor check_hpjd 2025-03-11 11:07:26 +01:00
check_ldap.d check_ldap: implement output format selection 2025-11-25 12:42:50 +01:00
check_load.d check_load some number type fixes 2025-07-06 22:46:41 +02:00
check_mrtg.d check_mrtg: implement modern output 2025-11-26 14:35:21 +01:00
check_mrtgtraf.d check_mrtgtraf: modern output implementation 2025-11-27 07:35:29 +01:00
check_mysql.d Add output formatting option where they were forgotten 2025-11-26 13:57:12 +01:00
check_mysql_query.d Add output formatting option where they were forgotten 2025-11-26 13:57:12 +01:00
check_nagios.d Refactor check_nagios 2025-03-11 16:18:03 +01:00
check_ntp_peer.d check_ntp_peer: add cli param to set output format 2025-11-05 12:04:30 +01:00
check_ntp_time.d check_ntp_time: add cli option for output format 2025-11-05 12:19:20 +01:00
check_pgsql.d check_pgsql: implement cli params for output format 2025-11-05 14:01:17 +01:00
check_ping.d Refactor check_ping 2025-03-12 13:03:17 +01:00
check_procs.d Fix initialisers for old compilers 2025-03-12 15:50:50 +01:00
check_radius.d Refactor check_radius 2025-03-12 16:51:02 +01:00
check_real.d Refactor check_real 2025-03-12 17:22:17 +01:00
check_smtp.d check_smtp: certificate check is no longer opt-in 2025-11-09 11:46:36 +01:00
check_snmp.d check_snmp: fix offset computation for INTEGER (#2190) 2025-12-02 11:32:17 +01:00
check_ssh.d check_ssh: Move default SSH constant around a bit 2025-03-07 23:38:50 +01:00
check_swap.d check_swap: Fix Build At Least For OpenBSD 2025-09-16 00:19:04 +02:00
check_tcp.d small fixes to check_tcp config 2025-03-13 13:00:05 +01:00
check_time.d Refactor check_time 2025-03-12 18:14:54 +01:00
check_ups.d Run clang-format again 2025-09-15 12:59:37 +02:00
check_users.d fixes check_users build on OpenBSD (without utmpx) 2025-09-26 12:51:42 +01:00
negate.d Refactor negate 2025-03-12 21:22:50 +01:00
picohttpparser Run clang-format again 2025-09-15 12:59:37 +02:00
t check_ntp_time/check_ntp_peer: unix socket handling (#2187) 2025-11-28 10:52:39 +01:00
tests Remove check_nt (#2195) 2025-12-03 22:39:19 +01:00
check_apt.c fix default check state 2025-09-16 14:11:29 +02:00
check_by_ssh.c check_by_ssh: some formatting 2025-11-16 15:27:58 +01:00
check_cluster.c check_cluster: new output functionality 2025-09-17 11:25:13 +02:00
check_curl.c append the query string from parsed uri 2025-12-04 17:03:57 +01:00
check_dbi.c Add output formatting option where they were forgotten 2025-11-26 13:57:12 +01:00
check_dig.c check_dig: add -E/--require-flags and -X/--forbid-flags (#2165) 2025-11-29 15:24:52 +01:00
check_disk.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_dns.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_dummy.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_fping.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_game.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_hpjd.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_http.c check_http: formatting + no-brainer linter fixes 2025-09-09 15:20:29 +02:00
check_ide_smart.c check_ide_smart: use the more common C90 fixed width integers 2025-03-17 12:56:42 +01:00
check_ldap.c check_ldap: fix thresholds for number of entries 2025-11-25 13:48:01 +01:00
check_load.c More refactoring 2025-09-15 15:49:26 +02:00
check_mrtg.c check_mrtg: implement modern output 2025-11-26 14:35:21 +01:00
check_mrtgtraf.c check_mrtgtraf: modern output implementation 2025-11-27 07:35:29 +01:00
check_mysql.c Look for either replica or slave in replica status 2025-11-27 12:55:26 +01:00
check_mysql_query.c Add output formatting option where they were forgotten 2025-11-26 13:57:12 +01:00
check_nagios.c Refactor check_nagios 2025-03-11 16:18:03 +01:00
check_ntp_peer.c check_ntp_time/check_ntp_peer: unix socket handling (#2187) 2025-11-28 10:52:39 +01:00
check_ntp_time.c Fix check_ntp_time without a socket (#2196) 2025-12-04 13:24:14 +01:00
check_pgsql.c fix typos 2025-11-05 14:01:31 +01:00
check_ping.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_procs.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_radius.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_real.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_smtp.c check_smtp: certificate check is no longer opt-in 2025-11-09 11:46:36 +01:00
check_snmp.c check_snmp: remove useless headers 2025-09-26 18:14:44 +02:00
check_ssh.c clang-format 2025-08-01 14:35:23 +02:00
check_swap.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_tcp.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_time.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_ups.c Run clang-format again 2025-09-15 12:59:37 +02:00
check_users.c fixes check_users build on OpenBSD (without utmpx) 2025-09-26 12:51:42 +01:00
common.h Run clang-format again 2025-09-15 12:59:37 +02:00
Makefile.am Remove check_ntp (#2194) 2025-12-04 13:23:50 +01:00
negate.c Run clang-format again 2025-09-15 12:59:37 +02:00
netutils.c More refactoring 2025-09-15 15:49:26 +02:00
netutils.h check_smtp: modern output + some tls cert helper functions 2025-11-08 00:19:25 +01:00
popen.c Run clang-format again 2025-09-15 12:59:37 +02:00
popen.h Run clang-format again 2025-09-15 12:59:37 +02:00
runcmd.c Implement replacement functions for executing commands 2025-11-16 14:26:41 +01:00
runcmd.h Run clang-format again 2025-09-15 12:59:37 +02:00
sslutils.c Fix initialisation on old compilers 2025-11-08 00:59:46 +01:00
urlize.c Run clang-format again 2025-09-15 12:59:37 +02:00
utils.c Run clang-format again 2025-09-15 12:59:37 +02:00
utils.h Run clang-format again 2025-09-15 12:59:37 +02:00