ConnectHttp: Difference between revisions
Jump to navigation
Jump to search
(Created page with " This command connects to a given FTP server on the specified GSM port. FTP server connection details are provided in parameters Prerequisites : Data link should be UP on the given port (See ConnectData) If any of required parameters is not needed it can be specified as empty string (""). Command returns once connection is established or optional timeout (entered in seconds) expired. '''COMMAND''' {| class="wikitable" !Command !Line Arguments !Returns |- |ConnectFtp...") Tag: 2017 source edit |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This command connects to a given | This command connects to a given HTTP server on the specified GSM port. | ||
FTP server connection details are provided in parameters | FTP server connection details are provided in parameters | ||
Line 7: | Line 7: | ||
If any of required parameters is not needed it can be specified as empty string (""). | If any of required parameters is not needed it can be specified as empty string (""). | ||
Optional HTTP header name and value can be specified always in pair. Up to 12 HTTP headers can be specified. | |||
Command returns once connection is established or optional timeout (entered in seconds) expired. | Command returns once connection is established or optional timeout (entered in seconds) expired. | ||
Line 17: | Line 19: | ||
|- | |- | ||
|ConnectFtp | |ConnectFtp | ||
|PortIndex, | |PortIndex, HTTPIPAddress,UserName,Password,HTTPVersion, MaximalNumberofRedirect,ListofHTTPHeaderName, HTTPHeaderValue | ||
|[[R2D2 Error Codes|Error Code]] in case of error. | |[[R2D2 Error Codes|Error Code]] in case of error. | ||
|} | |} | ||
'''OUTPUT''' | '''OUTPUT''' | ||
Success or Error Message (See [[Data Messages|Data Commands Messages]]) | |||
'''EXAMPLE''' <syntaxhighlight lang="text"> | '''EXAMPLE''' <syntaxhighlight lang="text"> | ||
~# | ~# ConnectHttp 0 http://www.opalesystems.com "user" "pass" 0 5 "User-Agent" "WIP-HTTP-Client/0" "Accept-Encoding" "gzip" "Accept-Language" "en-US" | ||
OK | |||
~# | ~# ConnectHttp 1 | ||
BAD PARAMETERS | |||
Latest revision as of 18:06, 1 April 2025
This command connects to a given HTTP server on the specified GSM port.
FTP server connection details are provided in parameters
Prerequisites : Data link should be UP on the given port (See ConnectData)
If any of required parameters is not needed it can be specified as empty string ("").
Optional HTTP header name and value can be specified always in pair. Up to 12 HTTP headers can be specified.
Command returns once connection is established or optional timeout (entered in seconds) expired.
COMMAND
Command | Line Arguments | Returns |
---|---|---|
ConnectFtp | PortIndex, HTTPIPAddress,UserName,Password,HTTPVersion, MaximalNumberofRedirect,ListofHTTPHeaderName, HTTPHeaderValue | Error Code in case of error. |
OUTPUT
Success or Error Message (See Data Commands Messages)
EXAMPLE
~# ConnectHttp 0 http://www.opalesystems.com "user" "pass" 0 5 "User-Agent" "WIP-HTTP-Client/0" "Accept-Encoding" "gzip" "Accept-Language" "en-US"
OK
~# ConnectHttp 1
BAD PARAMETERS