Ignore:
Timestamp:
Feb 11, 2016, 7:15:39 PM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
Children:
f0923c4
Parents:
5aae10e
Message:

Support curl or Wget for test case "26_redirect_HTTP_to_HTTPS"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-26_redirect_HTTP_to_HTTPS.bash

    r5aae10e r67f2f58  
    3333
    3434# Send status request over HTTP. This should get redirected to HTTPS.
    35 wget --ca-certificate=authority/x509.pem -O "${output}" \
    36      "http://${TEST_HOST}:${TEST_HTTP_PORT}/status?auto"
     35URL="http://${TEST_HOST}:${TEST_HTTP_PORT}/status?auto"
     36if [ "$(basename ${HTTP_CLI})" = "curl" ]; then
     37    ${HTTP_CLI} --location --cacert authority/x509.pem "${URL}" >"${output}"
     38elif [ "$(basename ${HTTP_CLI})" = "wget" ]; then
     39    ${HTTP_CLI} --ca-certificate=authority/x509.pem -O "${output}" "${URL}"
     40else
     41    echo "No HTTP client (curl or wget) found, skipping." 2>&1
     42    exit 77
     43fi
    3744
    3845# If the request was redirected correctly, the status report lists the
Note: See TracChangeset for help on using the changeset viewer.