1
0
forked from HPR/hpr-tools

Curl fix to show headers

This commit is contained in:
Ken Fallon 2025-07-15 19:58:31 +02:00
parent 4f5cbb24be
commit 31986b3ea6

View File

@ -1330,7 +1330,7 @@ function post_show_to_hpr_db() {
echo_error "The file \"${post_show_json}\" is not valid json."
fi
curl --netrc --include --request POST "https://hub.hackerpublicradio.org/cms/add_show_json.php" --header "Content-Type: application/json" --data-binary "@${post_show_json}"
curl --netrc --show-headers --request POST "https://hub.hackerpublicradio.org/cms/add_show_json.php" --header "Content-Type: application/json" --data-binary "@${post_show_json}"
if [ "$( curl --silent --netrc --write-out '%{http_code}' https://hub.hackerpublicradio.org/cms/say.php?id=${ep_num} --output /dev/null )" != 200 ]
then