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.
Is there anything that I can do?
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.
Is there anything that I can do?
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.
'...'to prevent special characters like&from being interpreted by the shell – steeldriver Oct 11 '21 at 19:52