All Questions
2,312
questions
1
vote
0
answers
37
views
Access and Change settings on a TP Link Modem using curl or similar
I can't seem to find any working references or examples which would allow me to make changes to the settings in my Archer A23 WiFi router using any form of script. I've spent some time trying to get ...
0
votes
2
answers
52
views
Dynamically inject variable into the data parameter of a curl statement
Given the --data parameter of a curl statement:
--data '{
"collection": [
"Library"
],
"filter": "{'\''target.endpointUID'\'':{'\''$eq'\'': '\''...
1
vote
1
answer
42
views
Unable to pass variable to curl --data containing body in atlassian_doc_format
I am trying to update confluence page with command
curl --request PUT --url "https://<url>/wiki/rest/api/content/<id>" --user $TOKEN --header 'Accept: application/json' --header '...
0
votes
0
answers
15
views
How to filter Supabase JSONB with Bash [duplicate]
How would I filter using .contain to filter by JSONB data in my GET request?
My JSONB follows this structure:
[
{
"service": "Babysitter",
"available": true
},...
1
vote
2
answers
72
views
Replace single backslash with double backslash so that json becomes parseable
I am using cURL inside bash to fetch json data from remote API. Also using jq to parse and loop through the json array to perform additional operations. The response looks like this:
[
{
&...
0
votes
0
answers
35
views
Get data from Datalogger via wget/curl
I need to download the data from a datalogger, day by day, which only allows ftp/wget/curl. I need to create a script which download the files from the folder (or the folder itself) day by day every ...
0
votes
0
answers
70
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
29
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 '...
0
votes
1
answer
111
views
POST upload: curl: (26) Failed to open/read local data from file/application
I get curl: (26) Failed to open/read local data from file/application when uploading (with POST) a file with -F "file=@$file", in bash.
1
vote
0
answers
52
views
Curl produces different behaviour under the same request
I was using curl in linux in the command line to access different websites. At one point I noticed that something seemed odd when making request to linkedin. I ran this script to store and check the ...
0
votes
1
answer
53
views
Streaming bash command output into cURL
Hi I'm running a bash command that streams output data that looks like this:
nats sub demo.1 --queue demo -r | jq
{
"count": "8",
"time": "2024-05-15T12:51:41+01:...
2
votes
1
answer
67
views
BASH variables and curl [duplicate]
Can somebody please help me understand why the second command works as expect, but the first doesn't.
# first
SESSION=$(curl http://172.21.0.4:4444/status 2>&1 | grep sessionId | cut -d ":&...
1
vote
2
answers
4k
views
Running a curl command via bash returned "URL rejected: Bad hostname", but works on cmdline
When I try to run this cmd via bash like this
Bash Script
mycommand="curl $mycommand --url '${requestURL}'"
echo "Search Command $mycommand"
myresponse="$(${mycommand})"
...
3
votes
1
answer
116
views
How to "Enable mobile data" on a Huawei E3372 4G USB dongle using a bash script in Windows
!! EDIT: a solution can be found at the bottom of the question !!
I am using a Huawei E3372 4G USB dongle on Win8.1. This dongle's settings can be accessed via browser by typing 192.168.8.1 and the ...
0
votes
1
answer
112
views
How to list all folders with more then 10 artifacts in artifactory repo using CURL?
I have an artifactory issue.
I need to implement a retention policy, to keep just 10 artifacts per folder.
and I need help with that.
This is my initial curl command, to get all folders with the count ...