HTTPS Read Response Header Missing

Hello All,

I have successfully communicated with my server using Quectel MC60 module and Qcom tool.

The only thing I am facing is that, Using QHTTPPOST I got OK response and get Response data after QHTTPREAD.

I am using JSON as post data and all goes well, but I am not getting HEADER in Response, I am getting only BODY.

So, I am unable to read session Id which will be in header.

I have attached my commands and Response text,

Guide me to get Header in response.

Thank You,
Pratik R P

[2022-09-23_15:04:26:217]AT+CSQ

[2022-09-23_15:04:26:217]+CSQ: 19,0

[2022-09-23_15:04:26:217]OK

[2022-09-23_15:04:27:223]AT+QIDEACT

[2022-09-23_15:04:27:223]DEACT OK

[2022-09-23_15:04:28:243]AT+CMGF=1

[2022-09-23_15:04:28:243]OK

[2022-09-23_15:04:28:243]+CREG: 1,“15EF”,“EE87”

[2022-09-23_15:04:29:239]AT+CMGD=1,4

[2022-09-23_15:04:29:239]OK

[2022-09-23_15:04:30:243]AT+CGATT=1

[2022-09-23_15:04:30:243]+CME ERROR: 1

[2022-09-23_15:04:31:254]AT+CGPADDR=1

[2022-09-23_15:04:31:254]+CGPADDR: 1, “”

[2022-09-23_15:04:31:254]OK

[2022-09-23_15:04:32:273]AT+QICSGP=1,“airtelgprs.com”,“”,“”,1

[2022-09-23_15:04:32:273]OK

[2022-09-23_15:04:33:268]AT+QIREGAPP

[2022-09-23_15:04:33:268]OK

[2022-09-23_15:04:34:272]AT+QIACT

[2022-09-23_15:04:38:206]OK

[2022-09-23_15:04:48:055]AT+QSSLCFG=“seclevel”,1,0

[2022-09-23_15:04:48:055]OK

[2022-09-23_15:04:49:060]AT+QSSLCFG=“sslversion”,1,4

[2022-09-23_15:04:49:060]OK

[2022-09-23_15:04:50:065]AT+QSSLCFG=“ciphersuite”,1,“0xFFFF”

[2022-09-23_15:04:50:065]OK

[2022-09-23_15:04:51:072]AT+QSSLCFG=“ignorertctime”,1

[2022-09-23_15:04:51:072]OK

[2022-09-23_15:04:52:084]AT+QSSLCFG=“https”,1

[2022-09-23_15:04:52:084]OK

[2022-09-23_15:04:53:091]AT+QSSLCFG=“httpsctxi”,2

[2022-09-23_15:04:53:091]OK

[2022-09-23_15:04:54:100]AT+QHTTPCFG=“contextid”,1

[2022-09-23_15:04:54:100]OK

[2022-09-23_15:04:55:107]AT+QHTTPCFG=“responseheader”,1

[2022-09-23_15:04:55:107]OK

[2022-09-23_15:04:56:118]AT+QHTTPCFG =“requestheader”,1

[2022-09-23_15:04:56:118]OK

[2022-09-23_15:04:57:131]AT+QHTTPCFG=“sslctxid”,1

[2022-09-23_15:04:57:131]OK

[2022-09-23_15:04:58:140] AT+QHTTPCFG=“contenttype”,0

[2022-09-23_15:04:58:140]OK

[2022-09-23_15:04:59:149]AT+QHTTPURL=48,60

[2022-09-23_15:04:59:149]CONNECT

// my URL//

[2022-09-23_15:05:04:998]

[2022-09-23_15:05:04:998]OK

[2022-09-23_15:05:09:424]AT+QHTTPPOST=318,80,80

[2022-09-23_15:05:17:198]CONNECT

//MY JSON DATA//

[2022-09-23_15:05:21:648]

[2022-09-23_15:05:21:648]OK

[2022-09-23_15:05:24:110]AT+QHTTPREAD=80

[2022-09-23_15:05:24:110]CONNECT

[2022-09-23_15:05:24:110]{Recieved BODY JSON} from server Header is missing

[2022-09-23_15:05:24:254]OK

1 Like

Unfortunately, our http does not enable the ability to display http headers

My purpose is to read session id from Header which I do not get from it. Also it is not available in body. So what should I do to get session id from response.

ok, I know what you mean. You can test whether you can meet your expectations by configuring the http header. I have sent you the document by private email

I am getting header while getting response back from an API server. How to disable this header so that I didn’t get header while reading incoming Payload on Post requests