Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] HTTP POST with authorisation using Quectel M95?

Status
Not open for further replies.

maheshece28

Junior Member level 2
Joined
Jun 13, 2013
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
249
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.

Code:
#define HTTP_POST_URL_HS="http://api...."

if(SendAtCommand_Response("AT+QHTTPURL=35,30\r","CONNECT",500))
{
    uart1str("URL is set\r\n");
clear();
if(SendAtCommand_Response(HTTP_POST_URL_HS ,"OK",500))
{
    uart1str("URL Sent\r\n");
    if(SendAtCommand_Response("AT+QHTTPPOST=90,25,10\r","CONNECT",1000))
    {
        SendAtCommand_Response("__uuid=MQtNRZ&__deviceid=865733028409765&Latitude=13.98456&Longitude=80.06023&dc_volt=12.7","OK",100);
        uart1str("Posted!!!");
    }                                                           
}
}

Thanks
 


Hi,

Were you able to fix this? I am using Quectel M66 and stuck with same problem. Please let me know if you figured out a solutions.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top