Home > Back-end >  Be urgent!!!!!! C Builder6 use IdHttp and IdHTTPServer how to implement the following HTTP interface
Be urgent!!!!!! C Builder6 use IdHttp and IdHTTPServer how to implement the following HTTP interface

Time:10-02

You greatly, hoping to provide useful ideas or solutions, thank you very much,,,

Call names: T_TERM_ADDTERM
New message T_TERM_ADDTERM_Req terminal
Parameter identification T_TERM_ADDTERM_Req
The message format {
"HEAD" : {
"SEQUENCENO", "serial number",
"MSGTYPE" : "T_TERM_ADDTERM,"
"TIMESTAMP" : "TIMESTAMP"
},
"The BODY" : {
"TERMID", "terminal ID",
"TERMNAME" : "name of the terminal,"
//other extensions parameter
},
"HASH" : "the message digest"
}
Name that data type, length (bytes)
TERMID terminal ID String 20
TERMNAME terminal name String 20

T_TERM_ADDTERM_Rsp terminal new reply message
Parameter identification T_TERM_ADDTERM_Rsp
The message format {
"HEAD" : {
"SEQUENCENO", "serial number",
"MSGTYPE" : "T_TERM_ADDTERM,"
"TIMESTAMP" : "TIMESTAMP"
},
"The BODY" : {
"The RESULTCODE" : "return a result code"
},
"HASH" : "the message digest"
}
Name that data type, length (bytes)
The RESULTCODE returns the code
Zero: success
1 ~ 255: failure Unsigned Integer 1

CodePudding user response:

HTTP message using BASE64 encoding to send, server decoding processing

The server reply using XML format, the client USES XML to explain
  • Related