Skip to main content

All Questions

Tagged with
-2 votes
2 answers
77 views

use curl with variable containing headers

Probably something answered already elsewhere, but I did not find a proper solution until now. I want to define a code snippet in yaml for gitlab pipelines containing cURL command that I can reuse in ...
EricBDev's user avatar
  • 1,603
-1 votes
1 answer
62 views

How to make a clickable link in a JSON file from script

I'm creating an automation where I want to send a link in an e-mail. The e-mail is sent using a curl-able API. Here is smallest part of the HTML I want to send and reproduces the problem: printf -v ...
viktak's user avatar
  • 1
0 votes
1 answer
76 views

Searching for multiple strings in Curl and Grep

So, I have this if/else condition which checks for a certain string in curl output. If the output has either "yahoo" or "google", then I want it to hit the if block, otherwise hit ...
Software Fan's user avatar
0 votes
1 answer
57 views

Match output of a CURL in an IF-ELSE condition in BASH [duplicate]

I want to evaluate the output of a curl in an if-else. If the first condition matches, then shell return 0 and hence I equate to zero. Similarly for the second condition If Nothing matches go to else ...
Software Fan's user avatar
0 votes
4 answers
129 views

Output Curl and Grep to a variable

I need to run a curl command Grep that HTML curl output to search for a particular string If the grep string is present in the curl output, return true. Else False. Something like follows: output=$(...
Software Fan's user avatar
0 votes
1 answer
43 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 ...
Peter Libman's user avatar
1 vote
1 answer
65 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-...
garrettlynchirl's user avatar
0 votes
0 answers
112 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"...
cSharp's user avatar
  • 3,179
0 votes
0 answers
76 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 '...
shearichard's user avatar
  • 8,402
1 vote
1 answer
92 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". ...
V_Vibes's user avatar
  • 13
0 votes
0 answers
35 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 $...
markfree's user avatar
  • 183
0 votes
1 answer
75 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 ...
Cenk's user avatar
  • 1
0 votes
8 answers
283 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 ...
subodh's user avatar
  • 6,158
0 votes
1 answer
105 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 ...
Ray's user avatar
  • 1
0 votes
1 answer
241 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 ...
Younes Ben Tlili's user avatar

15 30 50 per page
1
2 3 4 5
65