curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: query

From: Dan Fandrich via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 28 Nov 2022 12:31:00 -0800

On Mon, Nov 28, 2022 at 04:23:13PM -0300, danielcorrente--- via curl-users wrote:
> what changes should i make to make it work in curl for windows ?

You don't say in what way it doesn't work.

> it's a whatsapp message from api cloud,
>
> curl -i -X POST `

Drop the -X; it's superfluous.

> https://graph.facebook.com/v15.0/113037868294137/messages `
> -H 'Authorization: Bearer mi_code_here' `
> -H 'Content-Type: application/json' `
> -d '{ \"messaging_product\": \"whatsapp\", \"to\": \"543465651891\", \"type\
> ": \"template\", \"template\": { \"name\": \"hello_world\", \"language\": { \
> "code\": \"en_US\" } } }'

Are you sure the quoting is correct? Try adding -v and see what quotes curl is
actually sending.
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2022-11-28