CN108833499B - Data processing method and device of hypertext transfer protocol and server - Google Patents

Data processing method and device of hypertext transfer protocol and server Download PDF

Info

Publication number
CN108833499B
CN108833499B CN201810525500.5A CN201810525500A CN108833499B CN 108833499 B CN108833499 B CN 108833499B CN 201810525500 A CN201810525500 A CN 201810525500A CN 108833499 B CN108833499 B CN 108833499B
Authority
CN
China
Prior art keywords
server
client
php
command
transmission command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810525500.5A
Other languages
Chinese (zh)
Other versions
CN108833499A (en
Inventor
岳朝伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Haoyi Technology Co ltd
Original Assignee
Beijing Haoyi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Haoyi Technology Co ltd filed Critical Beijing Haoyi Technology Co ltd
Priority to CN201810525500.5A priority Critical patent/CN108833499B/en
Publication of CN108833499A publication Critical patent/CN108833499A/en
Application granted granted Critical
Publication of CN108833499B publication Critical patent/CN108833499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/142Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a data processing method and device of a hypertext transfer protocol and a server. The method comprises the following steps: synchronizing a first transmission command identifier of a client; establishing a long link between the client and a transfer server; acquiring a first transmission command forwarded from the client; and receiving a first transmission command forwarded by the transit server through a web browser. The method and the device solve the technical problem that the acquisition end software program cannot be positioned through the web browser. In the application, the configuration of the acquisition terminal software in the internal network can be completed through an HTTP protocol by the aid of the transfer server.

Description

Data processing method and device of hypertext transfer protocol and server
Technical Field
The present application relates to the field of network transmission, and in particular, to a data processing method and apparatus for a hypertext transfer protocol, and a server.
Background
The hypertext transfer protocol involves several links as follows:
HTTP short links are not persistent links: short connections are used by default in HTTP/1.0. That is, the client and the server establish a connection every time they perform an HTTP operation, and the connection is interrupted when the task ends. When a certain HTML or other types of WEB pages accessed by the client browser contain other WEB resources, the browser can reestablish an HTTP session when encountering such a WEB resource.
HTTP long link or persistent link: from HTTP/1.1, a long connection is used by default to maintain connection characteristics. In the case of using a long connection, after a web page is opened, the TCP connection for transmitting HTTP data between the client and the server is not closed, and the client continues to use the established connection when accessing the server again. Keep-Alive does not Keep the connection permanently, it has a hold time, which can be set in different server software. Achieving long connections requires both the client and the server to support long connections.
Furthermore, the HTTP protocol is stateless, which means that the protocol has no memory capability for transactions and the server does not know what the client is. That is, there is no connection between opening a web page on one server and last opening a web page on that server. That is, HTTP is a stateless short link or long link oriented protocol.
Because the browsing terminal is a web browser, for the sake of generality, a plug-in cannot be installed, and the browsing terminal can only operate through the standard HTTP protocol of the browser. The inventor finds that the operation command cannot continuously reach the acquisition terminal software program in the intranet for a long time, and the configuration of the acquisition terminal software program in the intranet cannot be completed directly through the HTTP protocol. That is, the acquisition-side software program cannot be located through the web browser.
Aiming at the problem that the acquisition end software program cannot be positioned through a web browser in the related art, an effective solution is not provided at present.
Disclosure of Invention
The main objective of the present application is to provide a data processing method for hypertext transfer protocol, so as to solve the problem that the software program of the acquisition end cannot be located through a web browser.
In order to achieve the above object, according to one aspect of the present application, there is provided a data processing method of a hypertext transfer protocol.
The data processing method of the hypertext transfer protocol comprises the following steps: synchronizing a first transmission command identifier of a client; establishing a long link between the client and a transfer server; acquiring a first transmission command forwarded from the client; and receiving a first transmission command forwarded by the transit server through a web browser.
Further, receiving, by the web browser, the first transmission command forwarded by the transit server includes: target address positioning and forwarding are executed through a client; the Socket of the transit server is used as a positioning characteristic parameter to be transmitted among the client, the transit server and the PHP extension plug-in through the PHP extension plug-in; and the PHP extension plug-in waits for the positioning and forwarding of the target address and the transmission of the positioning characteristic parameters within the overtime range.
Further, obtaining the first transmission command forwarded from the client comprises: and triggering a PHP extension command by a webpage browser in the PHP extension plug-in through a PHP website to forward a first transmission command in a JSON character string format forwarded from the client.
Further, the first transmission command identification of the synchronization client includes: synchronizing the MAC network card address to a website server side at a client side; storing the MySQL database into the website server; and using the MAC network card address as an interactive command identifier in a hypertext transfer protocol.
To achieve the above object, according to another aspect of the present application, there is provided a data processing apparatus of a hypertext transfer protocol.
The data processing device of the hypertext transfer protocol comprises: the synchronization unit is used for synchronizing the first transmission command identifier of the client; the establishing unit is used for establishing long-chain connection between the client and the transfer server; the acquisition unit is used for acquiring the first transmission command forwarded from the client; and the receiving unit is used for receiving the first transmission command forwarded by the transfer server through a web browser.
Further, the receiving unit includes: the positioning forwarding unit is used for executing target address positioning forwarding through the client; the transfer unit is used for transferring the Socket of the transfer server as a positioning characteristic parameter among the client, the transfer server and the PHP extension plug-in through the PHP extension plug-in; and the PHP extension plug-in waits for the positioning and forwarding of the target address and the transmission of the positioning characteristic parameters within the overtime range.
Further, the obtaining unit is further configured to trigger, by the web browser in the PHP extension plug-in, the PHP extension command to forward the first transmission command in the JSON string format forwarded from the client through the PHP website.
Further, the synchronization unit includes: the state unit is used for synchronizing the MAC network card address to the website server side at the client side; the storage unit is used for storing the MySQL database into the website server; and the interaction unit is used for taking the MAC network card address as an interaction command identifier in a hypertext transfer protocol.
In order to achieve the above object, according to another aspect of the present application, there is provided a client including: the data processing device.
In order to achieve the above object, according to another aspect of the present application, there is provided a data processing server of a hypertext transfer protocol, including: the system comprises a transfer server and a PHP extension plug-in, wherein the transfer server is used for receiving a transfer command transmitted through a long link and executing transfer command interaction of the transfer command through the PHP extension plug-in, and the PHP extension plug-in is used for receiving a hypertext transfer protocol request sent from the webpage browser and forwarding the hypertext transfer protocol request to the transfer server.
In the embodiment of the application, the purpose of receiving the first transmission command forwarded by the transfer server through the web browser is achieved by adopting a mode of synchronizing the first transmission command identifier of the client and establishing the long link between the client and the transfer server, so that the technical effect of completing the software program configuration of the acquisition terminal through the transfer of the transfer server is achieved, and the technical problem that the software program of the acquisition terminal cannot be positioned through the web browser is solved. The configuration of the acquisition end software in the internal network can be completed through an HTTP protocol by the transfer server.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1 is a diagram illustrating a data processing method of a hypertext transfer protocol according to a first embodiment of the present application;
FIG. 2 is a diagram illustrating a data processing method of a hypertext transfer protocol according to a second embodiment of the present application;
FIG. 3 is a diagram illustrating a data processing method of a hypertext transfer protocol according to a third embodiment of the present application;
FIG. 4 is a schematic diagram of a hypertext transfer protocol data processing apparatus according to a first embodiment of the present application;
FIG. 5 is a schematic diagram of a hypertext transfer protocol data processing apparatus according to a second embodiment of the present application;
FIG. 6 is a schematic diagram of a data processing apparatus for hypertext transfer protocol in accordance with a third embodiment of the present application;
FIG. 7 is a schematic diagram of a data processing apparatus for hypertext transfer protocol in accordance with a fourth embodiment of the present application;
FIG. 8 is a diagram of a browser access acquisition side software program in the prior art;
FIG. 9 is an implementation of a data processing method of a hypertext transfer protocol implementing HTTP stateful using HTTP reverse long links according to an embodiment of the present application; and
fig. 10 is a schematic flowchart of a PHP extension direct control PC acquisition end according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the data processing method of the hypertext transfer protocol in the embodiment of the application, the original browser forward direction HTTP request process is kept unchanged, but when the web server processes the HTTP request, a process of forwarding the acquired request is added, a forwarding object is a TCP long link, a waiting command processing state is kept for a long time all the time, and the forwarding object looks like a reverse long link when viewed from the browser end which sends a command.
In the data processing method of the hypertext transfer protocol in the embodiment of the application, the HTTP is in a state, the reverse long link is combined with the MySQL database of the website, the original stateless HTTP is changed into the stateful HTTP, each HTTP request has a specified object, and each operation has an association relation.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1, the method includes steps S102 to S108 as follows:
step S102, synchronizing a first transmission command identifier of a client;
the client reports the unique MAC network card address to the network station end, and stores the unique MAC network card address into the MySQL database as an interactive command identifier. The synchronous mode is that the MAC reporting address is used for positioning and forwarding. The client may be a software application on the harvesting side.
Step S104, establishing long link between the client and the transfer server;
the collection end in the local area network needs to use a TCP to keep a long link with the transfer server for transferring the transfer command.
Step S106, acquiring a first transmission command forwarded from the client;
the PHP extension command can be triggered by any web browser connected to the network through the PHP website to forward the transit command. Before the first transmission command forwarded from the client is obtained, the first transmission command is firstly received through a transit server port and then forwarded.
Step S108, receiving the first transmission command forwarded by the transit server through the web browser.
The web browser may receive the first transmission command forwarded from the transit server. The original browser forward HTTP request process is kept unchanged, but when a website server processes an HTTP request, a process of forwarding the obtained request is added, a forwarding object is a TCP long link, a waiting command processing state is kept for a long time all the time, and the forwarding object looks like a reverse long link when viewed from a browser end which sends a command.
From the above description, it can be seen that the following technical effects are achieved by the present application:
in the embodiment of the application, the purpose of receiving the first transmission command forwarded by the transfer server through the web browser is achieved by adopting a mode of synchronizing the first transmission command identifier of the client and establishing the long link between the client and the transfer server, so that the technical effect of completing the software program configuration of the acquisition terminal through the transfer of the transfer server is achieved, and the technical problem that the software program of the acquisition terminal cannot be positioned through the web browser is solved. The configuration of the acquisition end software in the internal network can be completed through an HTTP protocol by the transfer server.
According to the embodiment of the present application, as a preferred preference of the embodiment, as shown in fig. 2, the receiving, by the web browser, the first transmission command forwarded by the transit server includes:
step S202, the target address is positioned and forwarded through the client;
the MAC report address of the acquisition end is used for positioning and forwarding, and the target address can be positioned and forwarded through the client. And takes the MAC report address as the destination address.
Step S204, a Socket of the transit server is used as a positioning characteristic parameter to be transmitted among the client, the transit server and the PHP extension plug-in through the PHP extension plug-in;
and the PHP extension plug-in waits for the positioning and forwarding of the target address and the transmission of the positioning characteristic parameters within a timeout range.
The PHP extension plug-in can wait for the processing result of the forwarding command within the timeout range and forward the result back to the PHP extension plug-in.
The obtaining of the first transmission command forwarded from the client comprises:
preferably, the webpage browser in the PHP extension plug-in triggers the PHP extension command to forward the first transmission command in the JSON string format forwarded from the client through the PHP website. The data finally received by the PHP extension plug-in is always a JSON character string, so that the PHP extension plug-in is convenient to process.
In particular, the dedicated interface may employ PHP extensions. PHP extension employs a Hypertext Preprocessor (english name: Hypertext Preprocessor, abbreviation: PHP) which is a common open source scripting language. The interaction between the PHP and the WEB page is an important means for realizing the interaction between the PHP website and the user. Two methods for interacting with the WEB page are provided in the PHP, one is to submit data through a WEB form, and the other is to transmit through a URL parameter.
For example, WEB page interaction information via a hypertext preprocessor at a user terminal is received through a PHP interface.
According to the embodiment of the present application, as a preferred embodiment of the present application, as shown in fig. 3, the first transmission command identifier of the synchronization client includes:
step S302, synchronizing the MAC network card address to a website server side at a client side;
and reporting the unique MAC network card address of the acquisition end to the network station end through the client.
Step S304, storing the MySQL database into the website server;
and storing the interactive command into a MySQL database as an interactive command identifier.
Step S306, the MAC network card address is used as an interactive command identifier in the hypertext transfer protocol. The original stateless HTTP can be changed into the stateful HTTP by combining the reverse long link with the MySQL database of the website. Meanwhile, each HTTP request has a designated object, and each operation has an association relation.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
According to an embodiment of the present application, there is also provided a data processing apparatus for implementing the hypertext transfer protocol, as shown in fig. 4, the apparatus including: a synchronization unit 10, configured to synchronize a first transmission command identifier of a client; an establishing unit 20, configured to establish a long link between the client and the transfer server; an obtaining unit 30, configured to obtain a first transmission command forwarded from the client; a receiving unit 40, configured to receive the first transmission command forwarded by the transit server through a web browser.
In the synchronization unit 10 of the embodiment of the present application, the client reports its own unique MAC network card address to the network station, and stores the unique MAC network card address in the MySQL database as the interactive command identifier. The synchronous mode is that the MAC reporting address is used for positioning and forwarding. The client may be a software application on the harvesting side.
In the embodiment of the present application, the acquisition end inside the local area network in the establishing unit 20 needs to maintain a long link with the transit server by using a TCP, so as to transmit the transit command.
In the obtaining unit 30 of the embodiment of the present application, the PHP extension command can be triggered by any web browser connected to the network through the PHP website to forward the transit command. Before the first transmission command forwarded from the client is obtained, the first transmission command is firstly received through a transit server port and then forwarded.
The web browser in the receiving unit 40 according to the embodiment of the present application may receive the first transmission command forwarded by the transit server. The original browser forward HTTP request process is kept unchanged, but when a website server processes an HTTP request, a process of forwarding the obtained request is added, a forwarding object is a TCP long link, a waiting command processing state is kept for a long time all the time, and the forwarding object looks like a reverse long link when viewed from a browser end which sends a command.
Preferably, the obtaining unit 30 is further configured to, in the PHP extension plug-in, trigger the PHP extension command to forward the first transmission command in the JSON string format forwarded from the client through the PHP website by the web browser.
According to the embodiment of the present application, as a preferred feature of the embodiment, as shown in fig. 5, the receiving unit 40 includes: a positioning and forwarding unit 401, configured to perform target address positioning and forwarding through the client; a transferring unit 402, configured to transfer, through the PHP extension plug-in, a Socket of the transfer server as a location feature parameter among the client, the transfer server, and the PHP extension plug-in; and the PHP extension plug-in waits for the positioning and forwarding of the target address and the transmission of the positioning characteristic parameters within the overtime range.
In the positioning and forwarding unit 401 of the embodiment of the present application, positioning and forwarding are performed by using the MAC report address of the acquisition end, and target address positioning and forwarding can be performed by using the client. And takes the MAC report address as the destination address.
In the transfer unit 402 of the embodiment of the present application, the PHP extension plug-in waits for the target address location forwarding and the location feature parameter transfer within the timeout range.
The PHP extension plug-in can wait for the processing result of the forwarding command within the timeout range and forward the result back to the PHP extension plug-in.
The obtaining of the first transmission command forwarded from the client comprises:
preferably, the webpage browser in the PHP extension plug-in triggers the PHP extension command to forward the first transmission command in the JSON string format forwarded from the client through the PHP website. The data finally received by the PHP extension plug-in is always a JSON character string, so that the PHP extension plug-in is convenient to process.
In particular, the dedicated interface may employ PHP extensions. PHP extension employs a Hypertext Preprocessor (english name: Hypertext Preprocessor, abbreviation: PHP) which is a common open source scripting language. The interaction between the PHP and the WEB page is an important means for realizing the interaction between the PHP website and the user. Two methods for interacting with the WEB page are provided in the PHP, one is to submit data through a WEB form, and the other is to transmit through a URL parameter.
For example, WEB page interaction information via a hypertext preprocessor at a user terminal is received through a PHP interface.
According to the embodiment of the present application, as a preferred feature of the present embodiment, as shown in fig. 6, the synchronization unit 40 includes: a state unit 403, configured to synchronize the MAC network card address to the website server at the client; a storage unit 404, configured to store the MySQL database through the website server; an interaction unit 405, configured to use the MAC network card address as an interaction command identifier in a hypertext transfer protocol.
In the state unit 403 in the embodiment of the present application, the unique MAC network card address of the acquisition end is reported to the network station end through the client.
The storage unit 404 of the embodiment of the present application stores a MySQL database as an interactive command identifier.
In the interaction unit 405 of the embodiment of the application, the original stateless HTTP can be changed into the stateful HTTP by combining the reverse long link with the MySQL database of the website. Meanwhile, each HTTP request has a designated object, and each operation has an association relation.
According to the embodiment of the present application, as a preferred embodiment of the present application, as shown in fig. 7, a data processing server 100 of the hypertext transfer protocol includes: the system comprises a transit server 1001 and a PHP extension plug-in 1002, wherein the transit server 1001 is used for receiving transit commands transmitted through long links and executing transit command interaction through the PHP extension plug-in, and the PHP extension plug-in 1002 is used for receiving hypertext transfer protocol requests sent from the web browser and forwarding the hypertext transfer protocol requests to the transit server.
In the transit server 1001 of the embodiment of the present application, the acquisition end inside the lan needs to maintain a long link with the transit server by using a TCP, so as to transmit a transit command. The acquisition end on the client inside the local area network needs to keep a long link with the transfer server by using a TCP for transferring the transfer command.
In the PHP extension plug-in 1002 according to the embodiment of the present application, the PHP extension plug-in waits for the target address location forwarding and the location feature parameter transfer within the timeout range.
And triggering a PHP extension command by a webpage browser in the PHP extension plug-in through a PHP website to forward a first transmission command in a JSON character string format forwarded from the client.
And positioning and forwarding are carried out by utilizing the MAC report address of the acquisition end, a Socket expanded by the PHP on the transfer server is used as parameter transmission and is used as a positioning characteristic, and otherwise, the transfer server cannot know which access address is forwarded.
Fig. 8 is a schematic diagram of a software program of a browser accessing a collection end in the prior art, and the basic scenario is as follows:
for example, the branch schools are distributed all over the country, the headquarters usually want to patrol the conditions of all classes of the branch schools at any time, a network camera (IPC) is installed in each class, special acquisition end software (client) can be installed in the branch schools, the headquarters can check the IPC real-time pictures of the branch schools to the classes at any time through a web browser, real-time parameter configuration can be carried out on the acquisition end software (client) installed in the branch schools at any time, and management of the headquarters is facilitated.
As can be seen from fig. 8, since the browsing terminal is a web browser, a plug-in cannot be installed for general purpose, and the browsing terminal can only operate by the HTTP protocol of the browser standard, but HTTP is a stateless connection-oriented protocol (short link or long link). No matter the HTTP long link or the HTTP short link is used, the collection terminal is stateless, namely, the web browser cannot be positioned to the collection terminal, the operation command cannot continuously reach the collection terminal in the intranet for a long time, and the configuration of the collection terminal software in the intranet cannot be completed directly through an HTTP protocol.
Referring to fig. 9, the acquisition end in the lan needs to use TCP to maintain a long link with the transit server for transferring the transit command; the PHP extension plug-in can be linked to a transfer server through a PHP code to carry out transfer command interaction; any web browser connected to the network can trigger the PHP extension command to forward the transfer command through the PHP website; the acquisition end will report the unique MAC network card address to the network station end, and store the unique MAC network card address in the MySQL database as the interactive command identifier.
As shown in FIG. 10, PHP extension can wait for processing completion within a timeout range; the data finally received by PHP extension is always a JSON character string, so that the PHP extension is convenient to process; firstly, the process is to use the MAC report address of the acquisition end to carry out positioning forwarding, secondly, the Socket of the PHP expanded on the transfer server is used as parameter transmission and is used as a positioning characteristic, and otherwise, the transfer server can not know who is forwarded.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (4)

1. A method for processing hypertext transfer protocol data, comprising:
synchronizing a first transmission command identifier of a client;
establishing a long link between the client and a transfer server;
acquiring a first transmission command forwarded from the client;
receiving a first transmission command forwarded by the transit server through a web browser
Wherein the first transmission command identifier of the synchronization client comprises: synchronizing the MAC network card address to a website server side at a client side; storing the MySQL database into the website server; using the MAC network card address as an interactive command identifier in a hypertext transfer protocol;
wherein the establishing of the long link between the client and the transfer server comprises: when the website server processes the HTTP request, the obtained request is forwarded, the forwarding object is a TCP long-chain connection, and the TCP long-chain connection always keeps a waiting command processing state for a long time;
wherein the obtaining of the first transmission command forwarded from the client comprises: triggering a PHP extension command by a webpage browser in the PHP extension plug-in through a PHP website to forward a first transmission command in a JSON character string format forwarded from the client;
wherein the receiving, by the web browser, the first transmission command forwarded by the transit server includes: target address positioning and forwarding are executed through a client; the Socket of the transit server is used as a positioning characteristic parameter to be transmitted among the client, the transit server and the PHP extension plug-in through the PHP extension plug-in; the PHP extension plug-in waits for the positioning and forwarding of a target address and the transmission of positioning characteristic parameters within an overtime range;
the data processing method further comprises: receiving WEB page interaction information through a hypertext preprocessor of a user side through a PHP interface; and the PHP extension plug-in receives the hypertext transfer protocol request sent from the webpage browser and forwards the hypertext transfer protocol request to a transfer server.
2. A hypertext transfer protocol data processing apparatus, comprising:
the synchronization unit is used for synchronizing the first transmission command identifier of the client;
the establishing unit is used for establishing long-chain connection between the client and the transfer server;
the acquisition unit is used for acquiring the first transmission command forwarded from the client;
a receiving unit, configured to receive, through a web browser, a first transmission command forwarded by the transit server;
wherein the synchronization unit includes: the state unit is used for synchronizing the MAC network card address to the website server side at the client side; the storage unit is used for storing the MySQL database into the website server; the interaction unit is used for taking the MAC network card address as an interaction command identifier in a hypertext transfer protocol;
the establishing unit is used for forwarding the acquired request when the website server processes the HTTP request, wherein the forwarding object is a TCP long link, and the TCP long link always keeps a waiting command processing state for a long time;
the acquisition unit is further used for triggering a PHP extension command to forward a first transmission command in a JSON character string format forwarded from the client through a PHP website by a webpage browser in the PHP extension plug-in;
wherein the receiving unit includes: the positioning forwarding unit is used for executing target address positioning forwarding through the client; the transfer unit is used for transferring the Socket of the transfer server as a positioning characteristic parameter among the client, the transfer server and the PHP extension plug-in through the PHP extension plug-in; the PHP extension plug-in waits for the positioning and forwarding of a target address and the transmission of positioning characteristic parameters within an overtime range;
the data processing device is also used for receiving WEB page interaction information through a hypertext preprocessor at a user side through a PHP interface; and the PHP extension plug-in receives the hypertext transfer protocol request sent from the webpage browser and forwards the hypertext transfer protocol request to a transfer server.
3. A client, characterized by the words comprising: a data processing apparatus as claimed in claim 2.
4. A hypertext transfer protocol data processing server, comprising: a transit server, a PHP extension plug-in,
the transit server is used for receiving transit commands transmitted by long-chain links and executing the transit command interaction of the transit commands through the PHP extension plug-in,
the PHP extension plug-in is used for receiving a hypertext transfer protocol request sent by a web browser and forwarding the hypertext transfer protocol request to a transfer server;
wherein, the software program of the acquisition terminal reports the unique MAC network card address of the acquisition terminal to the network station terminal, and the unique MAC network card address is stored in a MySQL database and used as an interactive command identifier; the transfer server establishes a TCP long link with the acquisition end software program; and the webpage browser receives the first transmission command forwarded by the transfer server, and particularly performs related information transmission between the webpage browser and the transfer server through the PHP extension plug-in.
CN201810525500.5A 2018-05-28 2018-05-28 Data processing method and device of hypertext transfer protocol and server Active CN108833499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810525500.5A CN108833499B (en) 2018-05-28 2018-05-28 Data processing method and device of hypertext transfer protocol and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810525500.5A CN108833499B (en) 2018-05-28 2018-05-28 Data processing method and device of hypertext transfer protocol and server

Publications (2)

Publication Number Publication Date
CN108833499A CN108833499A (en) 2018-11-16
CN108833499B true CN108833499B (en) 2021-05-28

Family

ID=64146479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810525500.5A Active CN108833499B (en) 2018-05-28 2018-05-28 Data processing method and device of hypertext transfer protocol and server

Country Status (1)

Country Link
CN (1) CN108833499B (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735015A (en) * 2004-08-03 2006-02-15 中兴通讯股份有限公司 Method for transmitting data to browser that JAVA realizes WEB server active initiation
CN102609437B (en) * 2011-12-23 2014-10-08 重庆长安汽车股份有限公司 Method for transferring local vehicle geographic data based on web server
CN102547242A (en) * 2011-12-31 2012-07-04 浙江创佳数字技术有限公司 Family security system on basis of Android intelligent set top box and implementing method
CN103237045B (en) * 2013-02-22 2015-12-09 北方工业大学 Parallel processing system and parallel processing method for large-scale real-time traffic data
CN104143064A (en) * 2013-05-08 2014-11-12 朱烨 Website data security system based on association analysis of database activity and web access
CN103634382B (en) * 2013-11-20 2019-10-18 科大讯飞股份有限公司 A kind of system and method for realizing real-time, interactive on webpage
CN104010039B (en) * 2014-06-05 2017-05-10 北京航空航天大学 Multi-radar remote monitoring system and method based on WebSocket
CN105337787A (en) * 2014-07-29 2016-02-17 北京奇虎科技有限公司 Multi-server monitoring method, device and system
CN104320491A (en) * 2014-11-06 2015-01-28 北京安奇智联科技有限公司 Method for synchronous display between mobile device and web terminal
US20160314471A1 (en) * 2015-04-24 2016-10-27 Fmr Llc Aberrant and Diminished Activity Detector Apparatuses, Methods and Systems

Also Published As

Publication number Publication date
CN108833499A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN112887433B (en) Cloud access edge service method and system based on QUIC protocol
CN108200165B (en) Request Transmission system, method, apparatus and storage medium
US7398314B2 (en) System and a method for accelerating communication of TCP/IP based content through the use of fake host names
WO2018166415A1 (en) Cloud storage system, media data storage method and system
RU2004131856A (en) METHODS AND DEVICE FOR SYNCHRONIZING HOW DATA IS STORED IN VARIOUS DATA STORAGES
CN102394880B (en) Method and device for processing jump response in content delivery network
CN108200158B (en) Request Transmission system, method, apparatus and storage medium
CN103491172A (en) Method and system for sharing cloud file
US20180278692A1 (en) Communication device, communication system, and communication method
EP3054650A1 (en) Method, device and system for redirecting data service proxy
US20110280247A1 (en) System and method for reducing latency via multiple network connections
CN106453683A (en) Method for centralized access management of cameras
CN104040538B (en) A kind of the Internet, applications exchange method, apparatus and system
WO2017211302A1 (en) Application program development method, apparatus and system
CN111245831B (en) FTP data transmission method and device, and information interaction system of server and client
CN108881487A (en) The control method and its server and electronic equipment of terminal device base station
CN109474646B (en) Communication connection method, device, system and storage medium
CN106708717B (en) A kind of exploitation adjustment method and device
CN105897452A (en) Data retransmission method and device
CN108833499B (en) Data processing method and device of hypertext transfer protocol and server
CN109088918A (en) A kind of exchange method, client device and server device
KR100597405B1 (en) System and method for relaying data by use of socket applicaton program
CN109286665B (en) Real-time mobile game long link processing method and device
WO2016058401A1 (en) Hypertext transfer protocol data restoring method and device
CN114390095A (en) Remote equipment control method and Internet of things equipment management platform and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant