Skip to main content

All Questions

Tagged with
1 vote
1 answer
4k views

Homebrew cannot install anything: Caused by some SSL related problem with cURL

Homebrew stopped to work. Here is an error that I get when I try to brew install anything: $ brew install python ==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.18.1_1.big_sur.bottle....
Rasto's user avatar
  • 17.9k
0 votes
1 answer
489 views

CURL command line with parameters

Maybe thats a stupid question, but I am stopped because of this. I have the WSDL structure that is the following as the image: <wsdl:types> <xsd:schema ...
Erbi Silva's user avatar
4 votes
3 answers
6k views

Difference between command line cURL and PHP cURL

I have a cURL command like this: curl 'https://www.example.com' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/...
David's user avatar
  • 3,398
0 votes
2 answers
2k views

Make curl wait before downloading

I'm trying to download some elements from a website using cURL. However, that website loads those elements ~5 seconds after I estabilish a connection. So I want cURL to have a delay - connect to the ...
karpov's user avatar
  • 1
0 votes
1 answer
550 views

GET Request by CURL is ignoring params

I'm trying to call GET request with params. The problem is that the response is ignoring from the params. This is the curl: curl -X GET https://api.helpscout.net/v2/customers \ -H 'Accept: ...
carmit's user avatar
  • 1
0 votes
2 answers
859 views

Curl command in shell script returning error {"Error":"bpapigw-300 Cannot authorize access to resource"

I am trying to execute curl using this shell script: #!/bin/bash curl -k -H "Content-Type:application/json" -d '{"username":"admin","password":"adminpw", "tenant":"master"}' https://localhost/tron/...
sibi gopi's user avatar
1 vote
0 answers
837 views

How do you get user input when running a fish script from a url?

Consider this fish script : #!/usr/bin/fish while true read -l -P "Give me an answer [y/n]:" reply switch $reply case Y y return 0 case '' N n return 1 end end When run ...
Jeff Windsor's user avatar
2 votes
2 answers
12k views

How to send JSON file as part of request body in CURL POST command

I am using CURL command line to send HTTP POST to a web service. I want to include a file's contents as a PART of the body of the POST command. Is this possible? I know I can send a file as the entire ...
b11's user avatar
  • 67
1 vote
1 answer
3k views

Curl and check for 403 error code

Here's the code I'm currently using: curl "http://google.com" -s -f -o /dev/null || echo "Website down." | mail -s "Website is down" [email protected] Essentially what I want to do is send myself an ...
James's user avatar
  • 15
2 votes
2 answers
863 views

Strange characters appearing in bash variable expansion

Trying to do the following on contos7 works as I expect: pod_in_question=$(curl -u uname:password -k very.cluster.com/api/v1/namespaces/default/pods/ | grep -i '"name": "myapp-' | cut -d '"' -f 4) ...
user3081519's user avatar
  • 2,879
0 votes
2 answers
35 views

Make statement executable

I am new to writing scripts. I know how to make a script executable in terminal using chmod u+x . However I am looking for a way to make to make statements in the said script be run when that script ...
Samuel Alexander Edelstein's user avatar
1 vote
1 answer
8k views

Curl Request : response using curl Request is not properly formatted(xml)

i am loading xml as String from Remote using curl as below: $ curl -i -H "Accept: application/xml" -X GET "URL Here" but response is not xml format, hence not easily readable. <?xml version="1....
lesnar's user avatar
  • 2,490
1 vote
1 answer
238 views

Cookie generated by javascript?

I'm trying to run curl on this domain: curl 'http://www.zone-h.org/' When I try to run that command by itself, it doesn't get the page's content like I'm wanting it to do. When I run curl like this, ...
user10848's user avatar
  • 161
11 votes
3 answers
14k views

How do I silence the HEAD of a curl request while using the silent flag?

When I run the curl command and direct the data to a file, I get back the content of the site as expected. $ curl "www.site.com" > file.txt $ head file.txt Top of site ... However, this command ...
Trevor Hickey's user avatar
2 votes
2 answers
840 views

How can I pass the result of a local `curl` in the command line to a remote server in one line?

I'm looking to make something like the following work in a one-line shell. curl -s icanhazip.com | ssh user@host 'php /path/to/script.php "[PASS_IP_HERE]"' I need to pass my local IP to a remote ...
Ryan's user avatar
  • 15.3k

15 30 50 per page
X