Unlock instant, AI-driven research and patent intelligence for your innovation.

Message transmission method and device and terminal equipment

A technology for message transmission and terminal equipment, which is applied in the field of communication, and can solve the problems that the front end cannot request to obtain data, the request URI field is long, etc.

Pending Publication Date: 2022-04-05
HILLSTONE NETWORKS CORP
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, the inventor found in actual research that in projects based on the RESTful API specification, since the GET request message does not have a message body, the data carried in the request is usually placed in the request URI, which makes the request URI field too long
However, mainstream browsers and servers have restrictions on the length of the request URI field of GET requests. After exceeding the limit, error code 414 will be returned (indicating that the request URI field is too long), which will cause the front end to fail to request data from the back end.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Message transmission method and device and terminal equipment
  • Message transmission method and device and terminal equipment
  • Message transmission method and device and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

[0036] see figure 1 , the embodiment of the present application provides a network system 10 , including a terminal device 100 and a server 200 communicatively connected to the terminal device 100 .

[0037] Wherein, the terminal device 100 may interact with the server 200 by using an API interface based on the HTTP protocol, so that the server 200 provides corresponding services. The terminal device 100 may be, but not limited to, a personal computer (Personal Computer, PC), a smart phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), a mobile Internet device (Mobile Internet Device, MID) and the like.

[0038] see figure 2 , figure 2 It is a schematic structural block diagram of a terminal device 100 applying a message transmission method and apparatus pro...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a message transmission method and device and terminal equipment. The method comprises the following steps: acquiring a first request message to be sent; wherein the first request message conforms to the RESTful API (Application Program Interface) specification; when it is determined that the request method of the first request message is GET, verifying the length of a request URL field in the first request message; wherein the GET request data is filled in a request URL field; when the length of the request URL field in the first request message is greater than a preset length, converting the first request message into a second request message; wherein the request method of the second request message is different from that of the first request message, and the GET request data is filled in a message main body of the second request message; a preset character is configured in a request header field in the second request message; the preset character is used for representing that the second request message is a converted message; and sending the second request message to the server. By means of the mode, the problem that the request cannot be sent due to the fact that the request URL field of the message with the request method being GET is too long can be avoided.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular, to a message transmission method, device, and terminal equipment. Background technique [0002] The HTTP protocol (Hyper Text Transfer Protocol, Hypertext Transfer Protocol) is a distributed, cooperative, multimedia information system service, application layer-oriented protocol. An HTTP request usually includes: a request URI (UniformResource Identifier, Uniform Resource Identifier), a request method, a request header field, and a message body. [0003] A web (World Wide Web, global wide area network) service can be divided into a front end and a back end. The API (Application Programming Interface, Application Programming Interface) interface based on the HTTP protocol is used for interactive communication between the front and back ends, and finally a complete service is provided. [0004] RESTful (Representational State Transfer, representational state tr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L67/02G06F16/955
Inventor 张志威许微微谢王梅范奉伟冯泽锐
Owner HILLSTONE NETWORKS CORP