Timeline for Using a variable to execute a curl command
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 14, 2017 at 14:41 | vote | accept | Kingofkech | ||
| Mar 13, 2017 at 14:28 | comment | added | Kingofkech | this is what i get: [ curl: (6) Could not resolve host: no-cache" curl: (6) Could not resolve host: 111131da-8254-21b3-1b95-9c12954152c9" curl: (1) Protocol ""http" not supported or disabled in libcurl] but it works in the console if i try it straight :/ | |
| Mar 13, 2017 at 14:25 | comment | added | Chris Davies | What response do you get from the res=`$commande` instruction? That attempt is less wrong than the other one. | |
| Mar 13, 2017 at 13:16 | answer | added | chepner | timeline score: 9 | |
| Mar 13, 2017 at 12:15 | comment | added | Kingofkech | I made a mistake in writing the question but i've fixed it , and my Curl comman is working , the proof is that the output of the $commande variable when copy pasted works perfectly fine on my shell. | |
| Mar 13, 2017 at 12:14 | history | edited | Kingofkech | CC BY-SA 3.0 | added 1 character in body |
| Mar 13, 2017 at 12:14 | review | Close votes | |||
| Mar 13, 2017 at 16:07 | |||||
| Mar 13, 2017 at 12:11 | comment | added | ilkkachu | Check your spelling first, you have commande in one place, and comande in another. Also {"access": looks like part of a JSON snippet, but your first code snippet doesn't have that anywhere. | |
| Mar 13, 2017 at 12:08 | history | edited | ilkkachu | edited tags | |
| Mar 13, 2017 at 11:47 | history | asked | Kingofkech | CC BY-SA 3.0 |