CN115442158A - Network request method, system, storage medium and terminal equipment - Google Patents

Network request method, system, storage medium and terminal equipment Download PDF

Info

Publication number
CN115442158A
CN115442158A CN202211381460.4A CN202211381460A CN115442158A CN 115442158 A CN115442158 A CN 115442158A CN 202211381460 A CN202211381460 A CN 202211381460A CN 115442158 A CN115442158 A CN 115442158A
Authority
CN
China
Prior art keywords
address
network
request
domain name
server
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.)
Granted
Application number
CN202211381460.4A
Other languages
Chinese (zh)
Other versions
CN115442158B (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.)
Yifang Information Technology Co ltd
Original Assignee
Yifang Information 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 Yifang Information Technology Co ltd filed Critical Yifang Information Technology Co ltd
Priority to CN202211381460.4A priority Critical patent/CN115442158B/en
Publication of CN115442158A publication Critical patent/CN115442158A/en
Application granted granted Critical
Publication of CN115442158B publication Critical patent/CN115442158B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3263Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2541Rights Management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a network request method, a network request system, a storage medium and terminal equipment, which are applied to the technical field of information processing. The network request system obtains a resource request address when operating a resource request control in a network request interface in the process of carrying out a network request, obtains domain name information corresponding to the server network address if the resource request address comprises a preset server network address, then generates a network request according to the obtained domain name information and the resource request address, and sends the network request. Therefore, after the server receives the network request, if the server has started the function of verifying the domain name, the server can directly verify the domain name according to the domain name information in the network request, so as to match the corresponding security certificate for verification.

Description

Network request method, system, storage medium and terminal equipment
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a network request method, a network request system, a storage medium, and a terminal device.
Background
In the prior art, in order to pursue a faster play-starting speed of an online player and prevent Domain Name hijacking, a Domain Name System (DNS) technology is usually used to replace Domain Name resolution in a play request address with an Internet Protocol (IP) address before requesting online video play. Therefore, the work of resolving the domain name of the playing address in the online player is omitted, the playing speed of the video is accelerated, and the problem of domain name hijacking is avoided.
With the popularization of HTTPS, the broadcast request addresses of most websites, video resources, and the like have changed from HTTP to HTTPS, which can provide identity authentication for a website server while protecting privacy and integrity of exchanged data, thus generally forming a network request mechanism of HTTPS + IP. However, in the actual application process of this mechanism, if the "domain name authentication" mechanism is started in the server, the authentication of the address of the play request often fails, which results in the failure of the play request.
Disclosure of Invention
Embodiments of the present invention provide a network request method, a network request system, a storage medium, and a terminal device, so that domain name verification can be implemented in an HTTPS + IP network request mechanism.
An embodiment of the present invention provides a network request method, including:
displaying a resource request control on a network request interface, responding to the operation of the resource request control, and acquiring a resource request address;
determining whether the resource request address comprises a preset server network address;
if the resource request address comprises the server network address, acquiring domain name information corresponding to the server network address;
and generating a network request according to the acquired domain name information and the resource request address, and sending the network request to a corresponding server.
Another aspect of an embodiment of the present invention provides a network request system, including:
the address acquisition unit is used for displaying a resource request control on a network request interface and responding to the operation of the resource request control to acquire a resource request address;
an address determining unit, configured to determine whether the resource request address includes a preset server network address;
a domain name obtaining unit, configured to obtain domain name information corresponding to the server network address if the resource request address includes the server network address;
and the request unit is used for generating a network request according to the acquired domain name information and the resource request address and sending the network request to a corresponding server.
In another aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores a plurality of computer programs, where the computer programs are adapted to be loaded by a processor and execute the network request method according to an embodiment of the present invention.
In another aspect, an embodiment of the present invention further provides a terminal device, including a processor and a memory;
the memory is used for storing a plurality of computer programs, and the computer programs are used for being loaded by the processor and executing the network request method provided by the embodiment of the invention; the processor is configured to implement each of the plurality of computer programs.
It can be seen that, in the method of this embodiment, in the process of performing a network request, when a resource request control in a network request interface is operated, a resource request address is obtained by a network request system, if the resource request address includes a preset server network address, domain name information corresponding to the server network address is obtained, then a network request is generated according to the obtained domain name information and the resource request address, and the network request is sent. Therefore, after the server receives the network request, if the server has started the function of verifying the domain name, the verification can be directly performed according to the domain name information in the network request, so that the corresponding security certificate is matched for verification.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a network request method according to an embodiment of the present invention;
fig. 2 is a flowchart of a network request method according to an embodiment of the present invention;
fig. 3 is a flowchart of a network request method provided in an application embodiment of the present invention;
FIG. 4 is a schematic diagram of a distributed system to which a network request method is applied in another embodiment of the present invention;
FIG. 5 is a block diagram illustrating an exemplary block structure according to another embodiment of the present invention;
fig. 6 is a schematic logical structure diagram of a network request system according to an embodiment of the present invention;
fig. 7 is a schematic logical structure diagram of another terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. 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.
An embodiment of the present invention provides a network request method, which is mainly directed to network requests of resources such as video and audio, and is shown in fig. 1, and mainly deploys a network request system at any application terminal, and executes the following network request process through the network request system:
displaying a resource request control on a network request interface, responding to the operation of the resource request control, and acquiring a resource request address; determining whether the resource request address comprises a preset server network address; if the resource request address comprises the server network address, acquiring domain name information corresponding to the server network address; and generating a network request according to the acquired domain name information and the resource request address, and sending the network request to a corresponding server.
In an actual application process, the network request system may be deployed in any application terminal, but not limited to: mobile phones, computers, intelligent interactive devices, intelligent household appliances, vehicle-mounted terminals and the like.
Therefore, after the server receives the network request, if the server has started the function of verifying the domain name, the verification can be directly performed according to the domain name information in the network request, so that the corresponding security certificate is matched for verification.
An embodiment of the present invention provides a network request method, which is a method executed by the network request system, and a flowchart is shown in fig. 2, where the method includes:
step 101, displaying a resource request control on a network request interface, and responding to the operation of the resource request control to obtain a resource request address.
It can be understood that the network request system may provide an interface for a user to operate, specifically, the network request system may display the network request interface, and the network request interface may include a resource request control, so that the user may operate the resource request control, thereby initiating the network request process of this embodiment.
In the actual application process, the network request interface may be a web page, a user interface of an applet, or an application program interface, and the actual form of the network request interface is not limited herein. The resource request control can be a resource request address input box or a link button of each resource, and the like, so that the resource request address obtained through the resource request control can be an address input by a user or a request address associated with the link button.
In some cases, the Resource request address obtained through the Resource request control may include domain name information of a network to which the requested specific Resource belongs, and related information (information such as a name or a type) of the specific Resource to be requested, and the like, for example, the Resource request address may be a Uniform Resource Locator (URL) and the like. In other cases, the resource request address obtained by the resource request control may include a network address of a server to which the requested specific resource belongs, information (such as a name or a type) related to the specific resource to be requested, and the like.
Step 102, determining whether the resource request address includes a preset server network address, and if the resource request address includes the server network address, executing the following step 103; if the resource request address does not include the server network address, a network request is directly generated according to the resource request address, and the network request is sent to a corresponding server.
The server network address is assigned a logical address for each network and each host on the internet to mask the physical address differences.
For example, if the resource request address obtained in step 101 is: https: // 192.534.123.56/xxx/xxx/xxx.xxx.mp4, a preset server network address 192.534.123.56 is included in the resource request address. If the resource request address obtained in the step 101 is: https: and/www.basic.com/xxx/xxx/xxx/xxx.mp4, the preset server network address is not included in the resource request address.
And 103, acquiring domain name information corresponding to the network address of the server.
The domain name information is the name of a computer or group of computers in a network consisting of a string of names separated by dots, which is used to identify the electronic location of the computer at the time of data transmission. Specifically, the corresponding relationship between the server network address and the domain name information is set in advance in the network request system, so that when the network request process of this embodiment is initiated, the domain name information corresponding to the server network address can be obtained by directly searching in the corresponding relationship according to the acquired server network address.
When the corresponding relationship is set, specifically, an AVOptions mechanism may be used to set the domain name variable in the execution function initiating the network request to include the domain name information, and set the network address variable in the execution function to include the server network address, and then store the server network address and the domain name information in an associated manner. The AVOptions mechanism is a universal mechanism used for declaring any structural option in FFmpeg, provides a universal method, can simply and conveniently assign values to structural member variables, and FFmpeg is an open source computer program providing complete solutions for recording, converting and streaming audio and video.
It should be noted that the network request interface may include a plurality of link buttons, and by operating each link button, a corresponding information obtaining request, such as a video obtaining request, an audio obtaining request, or another web page obtaining request, may be initiated, so that the network request system may obtain and display corresponding information according to the information obtaining request. In the embodiment of the present invention, for a link button for acquiring a specific type of resource (including a video resource or an audio resource), the network request system may acquire a server network address and domain name information respectively corresponding to the specific type of resource displayed in the network request interface in advance, and set a correspondence between the server network address and the domain name information of the specific type of resource.
And 104, generating a network request according to the acquired domain name information and the resource request address, and sending the network request to a corresponding server.
Specifically, the domain name information and the resource request address may be added to the network request and the network request may be sent. For example, if the above steps are performed for the resource request address https: // 192.534.123.56/xxx/xxx/xxx.mx 4, the obtained network address of the server is 192.534.123.56, the domain name information is www.basic.com, then https: v 192.534.123.56/xxx/xxx/xxx.mp4 and www.polyv.com are added to and send the network request.
It can be seen that, in the method of this embodiment, in the process of making a network request, when operating a resource request control in a network request interface, a network request system obtains a resource request address, obtains domain name information corresponding to the server network address if the resource request address includes a preset server network address, generates a network request according to the obtained domain name information and the resource request address, and sends the network request. Therefore, after the server receives the network request, if the server has started the function of verifying the domain name, the server can directly verify the domain name according to the domain name information in the network request, so as to match the corresponding security certificate for verification.
In this embodiment, the network request system is specifically applied to an FFmpeg module of an application terminal, and a domain name variable ip _ host and a network address variable ip _ addr in an execution function initiating the network request in the FFmpeg module may be set in advance through an AVOptions mechanism, a plurality of domain name information is set in the domain name variable, a plurality of server network addresses are set in the network address variable, and an association relationship between the domain name information and the server network addresses is established.
Thus, as shown in fig. 3, the FFmpeg module of the application terminal may implement the video resource request process by the following steps:
in step 201, a user may operate an application terminal to enable the application terminal to start an FFmpeg module, where the FFmpeg module displays a network request interface, and the network request interface includes a plurality of resource request controls, which are specifically video link buttons in this embodiment.
In step 202, when a user operates a certain video link button, the FFmpeg module responds to the operation on the video link button to obtain a resource request address, specifically a request address of the video resource.
Step 203, judging whether the resource request address comprises a preset server network address, if so, executing step 204; and if not, generating a network request directly according to the resource request address, and sending the network request to a corresponding server.
And step 204, the FFmpeg module acquires domain name information corresponding to the network address of the server.
And step 205, the FFmpeg module generates a network request according to the acquired domain name information and the resource request address and sends the network request to a corresponding server.
Specifically, the FFmpeg module calls an SSL _ set _ tlsext _ host _ name function of openssl to bind the acquired domain name information with the resource request address. The openssl is a software library package of an open source code, and an application program can use the package to perform secure communication, so that eavesdropping is avoided, the identity of a connector at the other end is confirmed, and the openssl is widely applied to a web server of the internet. And the SSL _ set _ tlnext _ host _ name function is a function for setting a domain name.
The sni is a technology allowing the application terminal to submit the requested domain name information when initiating the network request, the occurrence of the sni enables one server to provide services for a plurality of domain names, and when the server provides an HTTPS service for a plurality of domain names using a single network address, in this embodiment, the domain name information is carried in the network request initiated by the application terminal, so that the server can switch to a correct domain name and return a corresponding certificate.
Therefore, by setting relevant variables in the FFmpeg module in the embodiment, the calculation logic of the original module is not required to be modified, and the invasion of the FFmpeg module is less, so that the server can be supported to start domain name verification to ensure the security of the request in an HTTPS + IP network request mechanism.
In the following, a network request method according to the present invention is described with another specific application example, where the network request system in the embodiment of the present invention is mainly a distributed system 100, the distributed system may include a client 300 and a plurality of nodes 200 (any form of computing devices in an access network, such as servers and user terminals), and the client 300 and the nodes 200 are connected through network communication.
Taking a distributed system as an example of a blockchain system, fig. 4 is an optional structural schematic diagram of the application of the distributed system 100 To the blockchain system, which is provided by the embodiment of the present invention, and is formed by a plurality of nodes 200 (any form of computing devices in an access network, such as servers and user terminals) and a client 300, a point-To-point (P2P) network is formed between the nodes, and the P2P Protocol is an application layer Protocol running on a Transmission Control Protocol (TCP). In a distributed system, any machine, such as a server or a terminal, can join to become a node, and the node comprises a hardware layer, a middle layer, an operating system layer and an application layer.
Referring to the functions of each node in the blockchain system shown in fig. 4, the functions involved include:
1) Routing, a basic function that a node has, is used to support communication between nodes.
Besides the routing function, the node can also have the following functions:
2) The application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recorded data, carrying a digital signature in the recorded data to represent a source of task data, and sending the recorded data to other nodes in the block chain system, so that the recorded data is added to a temporary block when the other nodes verify the source and the integrity of the recorded data.
For example, the service implemented by the application includes a code implementing a network request function, which mainly includes:
displaying a resource request control on a network request interface, responding to the operation of the resource request control, and acquiring a resource request address; determining whether the resource request address comprises a preset server network address; if the resource request address comprises the server network address, acquiring domain name information corresponding to the server network address; and generating a network request according to the acquired domain name information and the resource request address, and sending the network request to a corresponding server.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
Referring to fig. 5, an optional Block Structure (Block Structure) provided in the embodiment of the present invention is shown, where each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
An embodiment of the present invention further provides a network request system, a schematic structural diagram of which is shown in fig. 6, and the network request system specifically includes:
the address obtaining unit 10 is configured to display a resource request control on a network request interface, and obtain a resource request address in response to an operation on the resource request control.
An address determining unit 11, configured to determine whether the resource request address acquired by the address acquiring unit 10 includes a preset server network address.
A domain name obtaining unit 12, configured to obtain domain name information corresponding to the server network address if the address determining unit 11 determines that the resource request address includes the server network address.
A request unit 13, configured to generate a network request according to the domain name information acquired by the domain name acquisition unit 12 and the resource request address, and send the network request to a corresponding server.
The request unit 13 is specifically configured to invoke an SSL _ set _ tlnext _ host _ name function to bind the obtained domain name information resource request address.
Further, the network request system in this embodiment may further include:
a setting unit 14, configured to set a correspondence between a server network address and domain name information in a system, specifically, set a domain name variable in an execution function that initiates the network request to include the domain name information, and set a network address variable in the execution function to include the server network address; and associating the server network address with the domain name information. In this way, the domain name obtaining unit 12 described above obtains domain name information according to the correspondence relationship set by the setting unit 14.
The setting unit 14 is specifically configured to obtain a server network address and domain name information respectively corresponding to the specific type of resource displayed in the network request interface; the particular type of resource comprises an audio resource or a video resource; and setting the corresponding relation between the network address of the server of the specific type of resource and the domain name information.
In the network request system of this embodiment, in the process of making a network request, when a resource request control in a network request interface is operated, a resource request address is obtained, if the resource request address includes a preset server network address, domain name information corresponding to the server network address is obtained, then a network request is generated according to the obtained domain name information and the resource request address, and the network request is sent. Therefore, after the server receives the network request, if the server has started the function of verifying the domain name, the server can directly verify the domain name according to the domain name information in the network request, so as to match the corresponding security certificate for verification.
The present invention further provides a terminal device, a schematic structural diagram of which is shown in fig. 7, where the terminal device may generate a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 20 (e.g., one or more processors) and a memory 21, and one or more storage media 22 (e.g., one or more mass storage devices) storing the application programs 221 or the data 222. Wherein the memory 21 and the storage medium 22 may be a transient storage or a persistent storage. The program stored in the storage medium 22 may include one or more modules (not shown), each of which may include a series of instruction operations for the terminal device. Still further, the central processor 20 may be arranged to communicate with the storage medium 22, and to execute a series of instruction operations in the storage medium 22 on the terminal device.
Specifically, the application program 221 stored in the storage medium 22 includes an application program of a network request, and the program may include the address obtaining unit 10, the address determining unit 11, the domain name obtaining unit 12, the requesting unit 13, and the setting unit 14 in the network request system, which are not described herein again. Further, the central processor 20 may be configured to communicate with the storage medium 22, and execute a series of operations corresponding to the network-requested application stored in the storage medium 22 on the terminal device.
The terminal equipment may also include one or more power supplies 23, one or more wired or wireless network interfaces 24, one or more input-output interfaces 25, and/or one or more operating systems 223, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
The steps performed by the network request system in the above method embodiment may be based on the structure of the terminal device shown in fig. 7.
Further, another aspect of the embodiments of the present invention also provides a computer-readable storage medium, which stores a plurality of computer programs, the computer programs being adapted to be loaded by a processor and execute the network request method executed by the network request system.
In another aspect, an embodiment of the present invention further provides a terminal device, including a processor and a memory;
the memory is used for storing a plurality of computer programs, and the computer programs are used for being loaded by the processor and executing the network request method executed by the network request system; the processor is configured to implement each of the plurality of computer programs.
Further, according to an aspect of the application, a computer program product or a computer program is provided, comprising computer instructions, which are stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the computer device executes the network request method provided in the above-mentioned various alternative implementations.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disk, or the like.
The network request method, system, storage medium and terminal device provided by the embodiments of the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A network request method, comprising:
displaying a resource request control on a network request interface, responding to the operation of the resource request control, and acquiring a resource request address;
determining whether the resource request address comprises a preset server network address;
if the resource request address comprises the server network address, acquiring domain name information corresponding to the server network address;
and generating a network request according to the acquired domain name information and the resource request address, and sending the network request to a corresponding server.
2. The method of claim 1, wherein the method further comprises:
and setting the corresponding relation between the network address of the server and the domain name information in the system.
3. The method according to claim 2, wherein the setting of the correspondence between the network address of the server and the domain name information in the system specifically includes:
setting a domain name variable in an execution function for initiating the network request to comprise the domain name information, and setting a network address variable in the execution function to comprise the server network address;
and associating the server network address with the domain name information.
4. The method according to claim 2, wherein before setting the correspondence between the server network address and the domain name information in the system, further comprising:
acquiring server network addresses and domain name information respectively corresponding to specific types of resources displayed in the network request interface; the particular type of resource comprises an audio resource or a video resource;
setting a corresponding relationship between the network address of the server and the domain name information in the system specifically includes: and setting the corresponding relation between the network address of the server of the specific type of resources and the domain name information.
5. The method according to any one of claims 1 to 4, wherein the generating a network request according to the obtained domain name information and the resource request address specifically includes:
and calling an SSL _ set _ tlsext _ host _ name function to bind the acquired domain name information with the resource request address.
6. A network request system, comprising:
the address acquisition unit is used for displaying a resource request control on a network request interface and responding to the operation of the resource request control to acquire a resource request address;
an address determining unit, configured to determine whether the resource request address includes a preset server network address;
a domain name obtaining unit, configured to obtain domain name information corresponding to the server network address if the resource request address includes the server network address;
and the request unit is used for generating a network request according to the acquired domain name information and the resource request address and sending the network request to a corresponding server.
7. The system of claim 6, further comprising:
a setting unit, configured to set a domain name variable in an execution function that initiates the network request to include the domain name information, and set a network address variable in the execution function to include the server network address; and associating the server network address with the domain name information.
8. The system of claim 7,
the setting unit is used for acquiring the server network address and the domain name information respectively corresponding to the specific type of resources displayed in the network request interface; the particular type of resource comprises an audio resource or a video resource; and setting the corresponding relation between the network address of the server of the specific type of resource and the domain name information.
9. A computer-readable storage medium, characterized in that it stores a plurality of computer programs adapted to be loaded by a processor and to perform the network request method according to any one of claims 1 to 5.
10. A terminal device comprising a processor and a memory;
the memory is for storing a plurality of computer programs for loading by the processor and executing the network request method of any of claims 1 to 5; the processor is configured to implement each of the plurality of computer programs.
CN202211381460.4A 2022-11-07 2022-11-07 Network request method, system, storage medium and terminal equipment Active CN115442158B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211381460.4A CN115442158B (en) 2022-11-07 2022-11-07 Network request method, system, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211381460.4A CN115442158B (en) 2022-11-07 2022-11-07 Network request method, system, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN115442158A true CN115442158A (en) 2022-12-06
CN115442158B CN115442158B (en) 2023-03-21

Family

ID=84253025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211381460.4A Active CN115442158B (en) 2022-11-07 2022-11-07 Network request method, system, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN115442158B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737582A (en) * 2017-04-18 2018-11-02 艺龙网信息技术(北京)有限公司 The method and device of domain name mapping
CN108777709A (en) * 2018-05-31 2018-11-09 康键信息技术(深圳)有限公司 Website access method, device, computer equipment and storage medium
CN110086895A (en) * 2019-04-11 2019-08-02 天津字节跳动科技有限公司 Domain name analytic method, device, medium and electronic equipment
CN110224996A (en) * 2019-05-20 2019-09-10 深圳壹账通智能科技有限公司 Network Access Method, device, computer equipment and the storage medium of application program
CN111064795A (en) * 2019-12-20 2020-04-24 腾讯科技(深圳)有限公司 Web page access acceleration method, system, computer equipment, server and medium
CN113206785A (en) * 2021-05-28 2021-08-03 深圳市中科明望通信软件有限公司 Network request method and device, terminal equipment and storage medium
CN113691646A (en) * 2021-08-18 2021-11-23 北京天融信网络安全技术有限公司 Domain name service resource access method, device, electronic equipment and medium
WO2022057000A1 (en) * 2020-09-16 2022-03-24 厦门网宿有限公司 Data proxy method and system and proxy server
CN114793244A (en) * 2022-06-14 2022-07-26 北京百度网讯科技有限公司 Resource processing method, device, equipment and medium for block chain

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737582A (en) * 2017-04-18 2018-11-02 艺龙网信息技术(北京)有限公司 The method and device of domain name mapping
CN108777709A (en) * 2018-05-31 2018-11-09 康键信息技术(深圳)有限公司 Website access method, device, computer equipment and storage medium
CN110086895A (en) * 2019-04-11 2019-08-02 天津字节跳动科技有限公司 Domain name analytic method, device, medium and electronic equipment
CN110224996A (en) * 2019-05-20 2019-09-10 深圳壹账通智能科技有限公司 Network Access Method, device, computer equipment and the storage medium of application program
CN111064795A (en) * 2019-12-20 2020-04-24 腾讯科技(深圳)有限公司 Web page access acceleration method, system, computer equipment, server and medium
WO2022057000A1 (en) * 2020-09-16 2022-03-24 厦门网宿有限公司 Data proxy method and system and proxy server
CN113206785A (en) * 2021-05-28 2021-08-03 深圳市中科明望通信软件有限公司 Network request method and device, terminal equipment and storage medium
CN113691646A (en) * 2021-08-18 2021-11-23 北京天融信网络安全技术有限公司 Domain name service resource access method, device, electronic equipment and medium
CN114793244A (en) * 2022-06-14 2022-07-26 北京百度网讯科技有限公司 Resource processing method, device, equipment and medium for block chain

Also Published As

Publication number Publication date
CN115442158B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN110781482B (en) Login method, login device, computer equipment and storage medium
CN105991614B (en) It is a kind of it is open authorization, resource access method and device, server
CN111030812A (en) Token verification method, device, storage medium and server
CN113381979B (en) Access request proxy method and proxy server
CN108259457B (en) WEB authentication method and device
US20210377247A1 (en) System and method for public api authentication
CN111355720B (en) Method, system and equipment for accessing intranet by application and computer storage medium
CN105991640B (en) Handle the method and device of HTTP request
CN107196909A (en) Invitation registration method and device
CN108449308A (en) Identify the method and device that malice resource accesses
CN108235067B (en) Authentication method and device for video stream address
CN110290097B (en) Data processing method and device, storage medium and electronic device
CN113239308B (en) Page access method, device, equipment and storage medium
CN110995779A (en) Method and system for caching network resources at mobile client, server and medium
CN109951487A (en) A kind of portal authentication method and device
TWI672019B (en) Method and device for calling a file
CN115442158B (en) Network request method, system, storage medium and terminal equipment
CN112487390A (en) Micro-service switching method and system
US8996607B1 (en) Identity-based casting of network addresses
CN108924149B (en) Token-based identity validity verification method and system
CN111935151B (en) Cross-domain unified login method and device, electronic equipment and storage medium
CN113395326B (en) Network service-based login method, device and computer-readable storage medium
CN110012301B (en) Authentication method and device for video stream address
CN113987062A (en) Data uplink storage method, system, device and storage medium
CN109302446B (en) Cross-platform access method and device, electronic equipment and storage medium

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