Skip to content

Commit

Permalink
Fixed next and close commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ivakegg committed Jul 17, 2023
1 parent 97b22ef commit a90449a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/datawave-quickstart/bin/query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ function closeQuery() {

local curlcmd="/usr/bin/curl \
--silent --write-out 'HTTP_STATUS_CODE:%{http_code};TOTAL_TIME:%{time_total};CONTENT_TYPE:%{content_type}' \
--insecure --cert "${DW_CURL_CERT}" --key "${DW_CURL_KEY_RSA}" --cacert "${DW_CURL_CA} --keepalive-time 180 " \
--insecure --cert ${DW_CURL_CERT} --key ${DW_CURL_KEY_RSA} --cacert ${DW_CURL_CA} --keepalive-time 180 \
-X PUT ${DW_QUERY_URI}/${DW_QUERY_ID}/close"

local response="$( eval "${curlcmd}" )"
Expand Down Expand Up @@ -368,7 +368,7 @@ function getNextPage() {

local curlcmd="/usr/bin/curl \
--silent --write-out 'HTTP_STATUS_CODE:%{http_code};TOTAL_TIME:%{time_total};CONTENT_TYPE:%{content_type}' \
--insecure --header 'Accept: application/json' ${DW_REQUEST_HEADERS} --cert "${DW_CURL_CERT}" --key "${DW_CURL_KEY_RSA}" --cacert "${DW_CURL_CA} --keepalive-time 180 " \
--insecure --header 'Accept: application/json' ${DW_REQUEST_HEADERS} --cert ${DW_CURL_CERT} --key ${DW_CURL_KEY_RSA} --cacert ${DW_CURL_CA} --keepalive-time 180 \
-X GET ${DW_QUERY_URI}/${DW_QUERY_ID}/next"

local response="$( eval "${curlcmd}" )"
Expand Down

0 comments on commit a90449a

Please sign in to comment.