All Questions
971
questions
0
votes
1
answer
28
views
I am receiving a response url not found on server when I try to delete file in Google Drive using a Linux bash script and curl
I am trying to delete a file using a bash shell script that I uploaded to a shared google drive using a different shell script. I am able to list the contents of the folder that the file is in and ...
1
vote
1
answer
44
views
Shell object and curl
I'm trying to use the following curl command in puredata with the shell object to retrieve an image:
curl -O -k 'https://cdn.onemars.net/sites/perfect-fit_uk_Z61CM_JAs8/image/editor/ben-griffiths-...
0
votes
0
answers
68
views
How to write a shorthand for localhost in curl?
I want to write just curl 8000 to work as curl localhost:8000.
I've come up with the following zsh function so far:
function curl() {
local first_arg="$1"
if [[ "$first_arg"...
0
votes
0
answers
28
views
Why does passing bearer token to a shell script not work but embedding the value does [duplicate]
I have a shell script foo.sh
curl -i -X GET 'https://example.com/bar' \
-H '...
1
vote
1
answer
52
views
Forward slash in Data retrieval using Web API and curl
I have a list of microRNA family names among which some are named in the form of "miR-10-5p". However, some microRNA family names have forward slash in them, e.g., "miR-1-3p/206". ...
0
votes
0
answers
30
views
Shell substring extraction from the end [duplicate]
I have this shell variable that gives me a string followed by the an HTTP return code.
# echo $response
good200
The script runs mostly on a BusyBox Shell and it has no Printf %q formatting.
# echo $...
0
votes
1
answer
38
views
Google Cloud Shell JSON (error 400) problem when making Cloud Vision API connection
I am trying to locate objects in a given picture (base64) by using Google Cloud Vision API as a newbie. I am using Google Cloud shell environment for this purpose and keeping all the files (image file ...
0
votes
8
answers
163
views
Shell one liner custom curl command with if else handling
I'm trying to read a url using curl command, and expecting command to exit with return code 0 or 1 based on response of curl after parsing the response json.
I tried to parse a json response, but ...
0
votes
1
answer
64
views
How to interpret string variable with two dollar sign for curl on shell script?
I have a problem on running curl command on shell script. I have a string variable with two dollar sign character, show as below example:
local auth="$3xLxLBcsKv$zY59kBuIpKeG4q1526phJ9"
I ...
0
votes
1
answer
76
views
Is is possible to get the last file updated in folder and subfolder with specifique name in artifactory?
I'm looking to find a solution how I can get the path of the last file updated with name "name_file" in specifique folder and subfolder in artifactory directory.
From documentation, I see ...
0
votes
0
answers
79
views
JSON payload in shell script using CURL [duplicate]
In my shell script, I'm reading a JSON array from a file. Then I'm looping over the array and send a POST request with each item from the array as json payload;
data.json
[
{
"orderId":...
0
votes
0
answers
24
views
curl .pbix file import POST error - HTTP Error 411. The request must be chunked or have a content length
curl command gives a 411 error when running it in jenkins, works fine loally.
curl -X POST "https://api.powerbi.com/v1.0/myorg/groups/{workspace_id}/imports?datasetDisplayName=Simple" -H &...
0
votes
0
answers
20
views
Error Length Required sending sitemap to Google Search Console
I have this shell script to submit a new sitemap to Google Search Console API:
curl --request PUT \
'https://searchconsole.googleapis.com/webmasters/v3/sites/sc-domain%3Amy-website.com/sitemaps/https%...
0
votes
0
answers
76
views
How to use jasonkarns/bats-mock for stubbing curl command with variable arguments for shell script unit testing
I m trying to stub the curl for below code :
function network_client() {
local method="$1"
local url="$2"
local data=""
local response
declare -a ...
0
votes
1
answer
326
views
Creating json variable with Airflow web API
I'm trying to create variable with json value in Airflow using web api.
My script:
curl -X POST "${AIRFLOW_URL}/api/v1/variables" \
-H "Content-Type: application/json" \
...