Score:4

Error using cURL on the WhatsApp web

cn flag

I'm trying to do a cURL, getting only the header of a site:

curl -I https://api.whatsapp.com/send/?phone=51988888888&text&app_absent=0

But I get a prompt, until pressing Enter or Ctrl + C.

Enter image description here

Is there anything that I can do?

24601 avatar
in flag
please [edit] your question to indicate your objective. Is it simply to use WhatsApp?
hr flag
You should quote the URL `'...'` to prevent special characters like `&` from being interpreted by the shell
hr flag
... see in particular [How to skip the evaluation of ampersand in command line?](https://askubuntu.com/questions/50898/how-to-skip-the-evaluation-of-ampersand-in-command-line)
Score:23
zw flag

You have to use quotes as follows

curl -I "https://api.whatsapp.com/send/?phone=51988888888&text&app_absent=0"

to prevent & being interpreted as backgrounding of some task.

Darren H avatar
my flag
OP might also find this useful [https://stackoverflow.com/questions/6697753/difference-between-single-and-double-quotes-in-bash](https://stackoverflow.com/questions/6697753/difference-between-single-and-double-quotes-in-bash)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.