I'm trying to do a POST method in my PIC24F which is interfaced with M95 Quectel module. I've successfully done the post method. Now in the server side added the security i.e authorization. In M95 Quectel module HTTP datasheet doesn't mention the authorisation. They have mentioned only httpurl, httppost, httpread and httpget. I have tried to send the username and password as payload in httpost for authorization, failed. Authorization type is "Basic Auth" Below is my code without authorization.
I assume that this functionality is not within the API and you need to do it yourself.
Basic Auth uses HTTP headers. I presume you just need to set the right headers and should be able to do it with one additional command.
For the formatting see: https://en.wikipedia.org/wiki/Basic_access_authentication#Client_side