Page 1 of 1

Using wpost$

Posted: Thu Aug 05, 2021 2:06 am
by peridot
Hi cicciocb
I would like to use this https://iotplotter.com . Its API uses Post with the api-key sent in the header, could we accommodate this?
Mike

Re: Using wpost$

Posted: Thu Aug 05, 2021 4:41 pm
by cicciocb
Hi,
It should be possible to use the optional argument content_type$.
In fact this inserts some text in the header.
In your case, you could set the content at "text/html" + chr$(10) + "api-key: KEY_HERE" + chr$(10)

Look at the doc here for this optional argument
[Local Link Removed for Guests]

Re: Using wpost$

Posted: Thu Aug 05, 2021 10:13 pm
by peridot
Thanks cicciocb, I had wondered if that may have been a possibility , I will try today.

Re: Using wpost$

Posted: Thu Aug 05, 2021 10:44 pm
by peridot
Thanks cicciocb, I had wondered if that may have been a possibility , I will try today.