User's Manual

Table Of Contents
HTTP Client Interface
AT+i Programmer‘s Manual Version 8.32 8-1
8 HTTP Client Interface
8.1 +iRLNK Retrieve Link
Syntax:
AT+i[!]RLNK[:URL]
Retrieves a file from a URL.
Parameters:
URL = Optional URL address, which specifies the host, path, and
source file to be retrieved.
URL address syntax:
―<protocol>://<host>[[:<port>]/[<abs_link>]/]‖
Command Options:
<protocol>
http or https
<host>
Host name or IP address
<port>
0..65535
If not specified, defaults to 80 for http and 443 for https.
<abs_link>
Path, filename, and file extension of the file to retrieve on the
designated host.
!
Stay online after completing the command.
Default:
Uses the URL address stored in the URL parameter.
Result Code:
I/OK
When command is received and about to be processed.
I/ERROR
Otherwise
Returns:
I/<sz><CR><LF>
Followed by:
<binary data stream>
where,
<sz> is the exact size of the <binary data stream> to follow.
If <sz> is unknown, iChip returns I/0 followed by the data stream.
When this is the case, the host must monitor for a timeout
condition of at least 5 seconds without any data being transmitted
before seeing one of the terminator lines described under
‗Followed by‘.
Followed by:
I/DONE
After successfully retrieving the file. Allow a 2.5 seconds delay
for iChip re-initialization following an Internet mode session.
-or-
I/ONLINE
After successfully retrieving the file, if the stay online flag (!) is