You are not logged in.

Dear visitor, welcome to Round Solutions M2M and wireless Support Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, August 24th 2017, 8:28am

How to make HTTPS GET and POST request to a server

Hi

I have made HTTP GET and POST request to our server, it is working fine.
Now I want to make HTTPS GET and POST request to a server : xyz.main_url.com/sub_url/ . How to proceed?

Thanks for your help.

Best regards
Prashanth K

This post has been edited 2 times, last edit by "Prashanth" (Aug 24th 2017, 9:17am)


2

Thursday, August 24th 2017, 3:39pm

Hi Prashanth,

please check Telit's SSL-TLS_User_Guide_r12.pdf . There are examples included.

Regards,

Hüseyin

3

Friday, August 25th 2017, 5:46am

Hi Prashanth,

You can try Below steps.Please inform me if it working or not?

Assume that you have the root CA Certificate and the PDP context definition/activation, and SSL socket enabling are performed

AT#SSLSECCFG=1,0,1 // set Server Authentication Mode//
OK


AT#SSLSECDATA=1,1,1,1760 //store the CA Certificate
> -----BEGIN CERTIFICATE-----
………
..Write the certificate ..
……….
-----END CERTIFICATE-----
<ctrl>Z
OK

AT#SSLD=1,443,"xyz.main_url.com",0,0 //open the SSL socket in ONLINE mode
CONNECT
GET /sub_url HTTP/1.1
Host: xyz.main_url.com


NO CARRIER



Regards,
Nimesh

4

Monday, August 28th 2017, 9:17am


Hi Prashanth,

please check Telit's SSL-TLS_User_Guide_r12.pdf . There are examples included.

Regards,

Hüseyin
Hi Huseyin,

I have gone through "Telit's SSL-TLS_User_Guide_r12.pdf". In this document, examples are provided for sending data to/receiving data from the server using Host Name(xyz.main_url.com). There is no example provided to explain the procedure to sending data to/receiving data from server's sub url (xyz.main_url.com/sub_url).
Please help me to send data to/receive data from server's sub-url.

Thanks & Regards
Prashanth K

5

Monday, August 28th 2017, 9:27am

Hi Prashanth,

please check Telit's SSL-TLS_User_Guide_r12.pdf . There are examples included.

Regards,

Hüseyin
Hi Prashanth,

You can try Below steps.Please inform me if it working or not?

Assume that you have the root CA Certificate and the PDP context definition/activation, and SSL socket enabling are performed

AT#SSLSECCFG=1,0,1 // set Server Authentication Mode//
OK


AT#SSLSECDATA=1,1,1,1760 //store the CA Certificate
> -----BEGIN CERTIFICATE-----
………
..Write the certificate ..
……….
-----END CERTIFICATE-----
Z
OK

AT#SSLD=1,443,"xyz.main_url.com",0,0 //open the SSL socket in ONLINE mode
CONNECT
GET /sub_url HTTP/1.1
Host: xyz.main_url.com


NO CARRIER



Regards,
Nimesh
Hi Prashanth,

You can try Below steps.Please inform me if it working or not?

Assume that you have the root CA Certificate and the PDP context definition/activation, and SSL socket enabling are performed

AT#SSLSECCFG=1,0,1 // set Server Authentication Mode//
OK


AT#SSLSECDATA=1,1,1,1760 //store the CA Certificate
> -----BEGIN CERTIFICATE-----
………
..Write the certificate ..
……….
-----END CERTIFICATE-----
Z
OK

AT#SSLD=1,443,"xyz.main_url.com",0,0 //open the SSL socket in ONLINE mode
CONNECT
GET /sub_url HTTP/1.1
Host: xyz.main_url.com


NO CARRIER



Regards,
Nimesh
Hi Nimesh,

I have done experiment with our server as suggested by you. I did not get any response from our server after sending GET command and our test log is

AT
OK

ATE0
OK

AT+CMEE=2
OK

AT+CGDCONT =1,"IP","LIVE.VODAFONE.COM"
OK

AT#SGACT =1,1
+CME ERROR: context already activated

AT#SSLSECCFG =1,0,1
OK

AT#CPUMODE=4
OK

AT#SSLD = 1,443,"xyz.main_url.com",0,0

CONNECT

GET /controller/sub_url HTTP/1.1

NO CARRIER

Please let me know is there any way to perform HTTPS POST and GET requests with the server.

Thanks & Regards
Prashanth K

6

Tuesday, August 29th 2017, 4:47am

Hi prashanth,

First check the certificate. Have you uploaded right CA Certificate?

Another thing, For testing the server i used "postman" Extension on google chrome. where you can check the GET/POST request.
Also you can see the GET/POST request code in that extension. If it send successfully than you can use that GET/POST code After connection made by AT#SSLD.


Regards,
Nimesh

7

Tuesday, August 29th 2017, 1:10pm

Hi prashanth,

First check the certificate. Have you uploaded right CA Certificate?

Another thing, For testing the server i used "postman" Extension on google chrome. where you can check the GET/POST request.
Also you can see the GET/POST request code in that extension. If it send successfully than you can use that GET/POST code After connection made by AT#SSLD.


Regards,
Nimesh
Hi prashanth,

First check the certificate. Have you uploaded right CA Certificate?

Another thing, For testing the server i used "postman" Extension on google chrome. where you can check the GET/POST request.
Also you can see the GET/POST request code in that extension. If it send successfully than you can use that GET/POST code After connection made by AT#SSLD.


Regards,
Nimesh
Hi Nimesh,

Thanks for your support.

Now, I can able to sending data to/receiving data from our HTTPS server (xyz.main_url.com) using below AT command sequence (Online Mode Communication).

AT#SSLD = 1,443,"xyz.main_url.com",0,0<CR><LF>

POST /controller/sub_url HTTP/1.1<CR><LF>

Host: xyz.main_url.com<CR><LF><CR><LF>

[ Bidirectional Data Exchange ]

NO CARRIER

Please let me know How can we send to/receive from HTTPS server in Command Mode Communication.

Thanks & Regards
Prashanth K

Rate this thread