Set Http Redirection Parameter - SimCom SIM900B Application Note

Ftp http at commands
Hide thumbs Also See for SIM900B:
Table of Contents

Advertisement

SIM900 IP APPLICATION
Set parameters for HTTP session
Set proxy server IP address
Set proxy server port
GET session start
GET successfully
Read the data of HTTP server
Terminate http service

3.6 Set HTTP Redirection Parameter

Demonstration
Init http service
Set parameters for HTTP session
Set the redirection parameter
Set the wrong URL
GET session start
GET successfully
Read the response of HTTP server
Terminate http service
SIM900 IP APPLICATION
AT+HTTPPARA = "CID",1
AT+HTTPPARA="URL","www.si
m.com"
AT+HTTPPARA="PROIP","10.0.0.
172"
AT+HTTPPARA = "PROPORT",80
AT+HTTPACTION=0
AT+HTTPREAD
AT+HTTPTERM
Syntax
AT+HTTPINIT
AT+HTTPPARA = "CID",1
AT+HTTPPARA = "REDIR",1
AT+HTTPPARA="URL","www.si
m.com/abcde"
AT+HTTPACTION=0
AT+HTTPREAD
AT+HTTPTERM
30
OK
OK
OK
OK
OK
+HTTPACTION:0,200,1000
+HTTPREAD: 1000
....
//output the data to uart
OK
OK
Expect Result
OK
OK
OK
OK
OK
+HTTPACTION:0,200,1000
+HTTPREAD: 1000
....
//output the data to uart
OK
OK

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIM900B and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents