Hello,
I’m trying to send data to a webhook from an BC660K module. When using standard content-type(application/x-www-form-urlencoded) the message is send succesfully, but when i put in a custom header with json content type, it isn’t working. I get the HTTP unkown error 701. What do i do wrong?
Below is my code.
Example URL: http://webhook.site/779647af-ab3c-49f4-8fda-6fa6800b965b/
Blockquote
sprintf(totaalmessage, “POST / HTTP/1.1\r\nHost: %s\r\nAccept: /\r\nUser-Agent: QUECTEL_MODULE\r\nConnection: Keep-Alive\r\nContent-Type: application/json\r\nContent-Length: %s\r\n\r\n%s”,url,lengthmessagecontentc,message);
Blockquote