Commit graph

1717 commits

Author SHA1 Message Date
Sven Nierlein
0958ce4b82 check_curl: unify performance data
and align them with check_http
2018-10-22 17:53:31 +02:00
Sven Nierlein
61571ce854 check_curl: use same page length in performance data and text output 2018-10-22 16:49:53 +02:00
Christopher Odenbach
7e9d9a5629 added some advanced tests for check_curl 2018-10-22 16:30:31 +02:00
Christopher Odenbach
347e749a0a Modified virtual host and port behaviour to match check_http. 2018-10-22 16:30:31 +02:00
Andreas Baumann
36ea82ff12 check_curl: changed name of plugin in user-agent and added curl_version() to it 2018-10-22 16:30:31 +02:00
Andreas Baumann
577edf4725 check_curl: removed some dead code 2018-10-22 16:30:31 +02:00
Andreas Baumann
5811729632 check_curl: removed die in redirect with relative paths, simple cases (same protocol, same host) actually work 2018-10-22 16:30:31 +02:00
Andreas Baumann
aa3b63215c ..I should really not test in test code :-) 2018-10-22 16:30:31 +02:00
Andreas Baumann
bd7fe411d5 check_curl: made HTTP message optional 2018-10-22 16:30:31 +02:00
Jean-François Rameau
30bb78e681 Avoid working with free'ed memory 2018-10-22 16:30:31 +02:00
Andreas Baumann
92bab06a45 fixed typo in check_curl error message (unparsable) 2018-10-22 16:30:31 +02:00
Andreas Baumann
d6491ba403 removed embedded uriparser library, added --with-uriparser configure option
to use uriparser library from the system
2018-10-22 16:30:31 +02:00
Andreas Baumann
46c5b54254 bumped coyright to 2018 in check_curl.c 2018-10-22 16:30:31 +02:00
Andreas Baumann
c5cd0e4912 updated bundled version of uriparser to 0.8.5 2018-10-22 16:30:31 +02:00
Andreas Baumann
7dd0a31b28 fixed initialization of server_url (freeing non-pointer in case of redirects) 2018-10-22 16:30:31 +02:00
Sven Nierlein
5368e24616 check_curl: cleanup
- remove obsolete todos
 - change exit code to unknown if regex exectute fails

Signed-off-by: Sven Nierlein <sven@nierlein.de>
2018-10-22 16:30:31 +02:00
Andreas Baumann
8120c53f90 set ssl_version to CURL_SSLVERSION_DEFAULT and not CURL_SSLVERSION_TLSv1_0
(since curl 7.56.1 we get an illegal argument error otherwise)
2018-10-22 16:30:31 +02:00
Andreas Baumann
8a5b49ec36 added -b <proxy_auth> to print_usage 2018-10-22 16:30:31 +02:00
Sven Nierlein
7ad8bcba5b check_curl: add proxy auth option 2018-10-22 16:30:31 +02:00
Sven Nierlein
8172fe7f30 check_curl: update docs 2018-10-22 16:30:31 +02:00
Sven Nierlein
603dd23d11 check_curl: add legacy http request support 2018-10-22 16:30:31 +02:00
Sven Nierlein
e09629ef65 check_curl: add docs about https proxy 2018-10-22 16:30:31 +02:00
Sven Nierlein
7344524655 check_curl: clean whitespace 2018-10-22 16:30:31 +02:00
Sven Nierlein
787e6986ee check_curl: handle proxied https requests 2018-10-22 16:30:31 +02:00
Andreas Baumann
7eb43858db fixed some printf bugs and switched to libcurl4-openssl for Travis tests 2018-10-22 16:30:31 +02:00
Andreas Baumann
2f3eb33b86 fixed include flags for liburiparser 2018-10-22 16:30:31 +02:00
Andreas Baumann
00cb1408ad fixed redirect sticky port handling in redir 2018-10-22 16:30:31 +02:00
Andreas Baumann
a739a56148 some rework:
- added old style 'redir' function and options along to a new
  libcurl internal 'follow' parameter 'curl'
- moved picohttpparser to it's own subdirectory
- added uriparser to be used instead of the home-grown parser in
  'redir'
2018-10-22 16:30:31 +02:00
Andreas Baumann
28a4c7076a synched tests/check_http.t test changes (virtualhost) into tests/check_curl.t 2018-10-22 16:30:31 +02:00
Andreas Baumann
f0cebd5153 fixed failing tests due to wrong content_length calculation 2018-10-22 16:30:31 +02:00
Andreas Baumann
94d017c5ab fixed getopt (-l missing, wrong order, hard to compare with check_http.c) 2018-10-22 16:30:31 +02:00
Andreas Baumann
6bc2646409 more tolerant CERTINFO parsing 2018-10-22 16:30:31 +02:00
Andreas Baumann
4b66d3d90a using CURLOPT_RESOLVE to make sure -I is the IP we connect to 2018-10-22 16:30:31 +02:00
Andreas Baumann
efa7e2c1e7 changed URL construction again, IP should preceed hostname, hostname set as Host: (makes sure we get the corrent DNS entry and server) 2018-10-22 16:30:31 +02:00
Andreas Baumann
5d9104f07f page length is computed from header, fallback to actual body size (get_content_length) 2018-10-22 16:30:31 +02:00
Andreas Baumann
cfb7dace54 fixed setting host_name or server_address in curl URL option 2018-10-22 16:30:31 +02:00
Andreas Baumann
ac08e9b275 reverted hostname in URL, must use CURL_RESOLVE mayabe 2018-10-22 16:30:31 +02:00
Andreas Baumann
7c74b772ed must use host_name and not server_address in URL, CN subject mismatch 2018-10-22 16:30:31 +02:00
Andreas Baumann
f91be546bf disable non-OpenSSL code compilation in -C check if we have USE_OPENSSL set 2018-10-22 16:30:31 +02:00
Andreas Baumann
82744e9705 made non-OpenSSL version of certificate -C check work 2018-10-22 16:30:31 +02:00
Andreas Baumann
229b9e53e1 handling the -C check now when compiled with OpenSSL but libcurl is not compiled with OpenSSL 2018-10-22 16:30:31 +02:00
Andreas Baumann
2da7575196 preparing for certificate checks (non-OpenSSL version) 2018-10-22 16:30:31 +02:00
Andreas Baumann
f4a7a3b3e7 small cleanup 2018-10-22 16:30:31 +02:00
Andreas Baumann
c0be97f154 probing for SSL library used by libcurl and started improving the certificate check -C 2018-10-22 16:30:31 +02:00
Andreas Baumann
995ab6572f using curl_getdate instead of local parse_time_string, added verbose debug code for -M<d> 2018-10-22 16:30:31 +02:00
Andreas Baumann
e65cf6a32f small fixes and cleanups around SSL, be more tolerant to -S<x> options 2018-10-22 16:30:31 +02:00
Andreas Baumann
f99b9352d4 for now we set LIBCURL_USES_OPENSSL always 2018-10-22 16:30:31 +02:00
Andreas Baumann
260291c08b made check_curl compile also if we have openssl disabled 2018-10-22 16:30:31 +02:00
Andreas Baumann
88f566adf5 fixed some libcurl checks and minimal versions 2018-10-22 16:30:31 +02:00
Andreas Baumann
55e8d89b0a some work on certificate checking for non-OpenSSL libraries 2018-10-22 16:30:31 +02:00