[go: up one dir, main page]

CN113556388A - Proxy service method, proxy service platform, computer device, and storage medium - Google Patents

Proxy service method, proxy service platform, computer device, and storage medium Download PDF

Info

Publication number
CN113556388A
CN113556388A CN202110793493.9A CN202110793493A CN113556388A CN 113556388 A CN113556388 A CN 113556388A CN 202110793493 A CN202110793493 A CN 202110793493A CN 113556388 A CN113556388 A CN 113556388A
Authority
CN
China
Prior art keywords
proxy
address
rule
request
service
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
CN202110793493.9A
Other languages
Chinese (zh)
Other versions
CN113556388B (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.)
Hangzhou Daishu Technology Co ltd
Original Assignee
Hangzhou Daishu 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 Hangzhou Daishu Technology Co ltd filed Critical Hangzhou Daishu Technology Co ltd
Priority to CN202110793493.9A priority Critical patent/CN113556388B/en
Publication of CN113556388A publication Critical patent/CN113556388A/en
Application granted granted Critical
Publication of CN113556388B publication Critical patent/CN113556388B/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/50Network services
    • H04L67/56Provisioning of proxy services
    • 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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a proxy service method, a proxy service platform, computer equipment and a storage medium, wherein the proxy service method comprises the following steps: when a host initiates a request, acquiring an ID of proxy service through a request path, and acquiring a real IP of the host through a request head; acquiring a default target proxy address and a proxy rule of the proxy service through the ID of the proxy service; acquiring an appointed target proxy address of proxy service according to a real IP and proxy rules of a host; judging whether the agent rule is available; if the proxy rule is available, selecting the specified target proxy address as the actual target proxy address; selecting a default target proxy address as an actual target proxy address if the proxy rule is not available; the request is forwarded to the actual target proxy address. The invention can reduce the time for switching the proxy, reduce the dependence of the back-end personnel on the front-end personnel and quickly and conveniently realize the proxy and forwarding of the request between the client and the server.

Description

Proxy service method, proxy service platform, computer device, and storage medium
Technical Field
The invention relates to the technical field of proxy service, in particular to a proxy service method, a proxy service platform, computer equipment and a non-transitory computer readable storage medium.
Background
The 'agent' is a word which cannot be avoided in the process of front-end and back-end development, and the client can be connected with the server through the agent service.
As a front-end developer, in actual development, it is often necessary to interface a plurality of back-end developers. Front-end personnel need to connect background services at a certain background personnel to perform joint debugging of a certain functional module. At this time, the front-end personnel need to modify the proxy address in the webpack configuration and then restart the node service. Multiple background personnel mean to connect multiple background services, which means that the webpack configuration needs to be modified and the services need to be restarted many times, which causes a lot of time consumption and is not friendly to front-end developers.
As a back-end developer, in actual development, if a request needs to be forwarded to the service of a background person through a browser, the front-end person is generally needed, which is inconvenient for both parties.
Disclosure of Invention
The present invention provides an agent service method, an agent service platform, a computer device and a storage medium for solving the above technical problems, which can reduce the agent switching time, reduce the dependence of the back-end personnel on the front-end personnel, and quickly and conveniently implement the agent and forwarding of the request between the client and the server.
The technical scheme adopted by the invention is as follows:
a proxy service method comprising the steps of: when a host initiates a request, acquiring an ID of proxy service through a request path, and acquiring a real IP of the host through a request head; acquiring a default target proxy address and a proxy rule of the proxy service through the ID of the proxy service; acquiring an appointed target proxy address of proxy service according to the real IP of the host and the proxy rule; judging whether the agent rule is available; selecting a specified target proxy address as an actual target proxy address if the proxy rule is available; selecting a default target proxy address as an actual target proxy address if the proxy rule is not available; forwarding the request to the actual target proxy address.
And acquiring the ID of the proxy service carried in the request path/proxy/: ID, and acquiring the Real IP of the host carried in the X-Real-IP field of the request head.
And judging whether the proxy rule is available or not by acquiring the status value of the proxy rule.
Forwarding the request to the actual target agent address via http-proxy-middleware.
A proxy service platform, comprising: the first acquisition module is used for acquiring the ID of the proxy service through a request path and acquiring the real IP of the host through a request head when the host initiates a request; the second acquisition module is used for acquiring the default target proxy address and the proxy rule of the proxy service through the ID of the proxy service; a third obtaining module, configured to obtain a specified target proxy address of the proxy service according to the real IP of the host and the proxy rule; the judging module is used for judging whether the agent rule is available; a selection module, configured to select a specified target proxy address as an actual target proxy address when the proxy rule is available, and select a default target proxy address as the actual target proxy address when the proxy rule is unavailable; a forwarding module for forwarding the request to the actual target proxy address.
The first acquisition module acquires the ID of the proxy service carried in the request path/proxy/: ID, and acquires the Real IP of the host carried in the X-Real-IP field of the request head.
The judging module judges whether the agent rule is available by acquiring a status value of the agent rule.
The forwarding module forwards the request to the actual target agent address through http-proxy-middleware.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the proxy service method when executing the computer program.
A non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the proxy service method described above.
The invention has the beneficial effects that:
the invention obtains the default target address and the agent rule according to the ID of the agent service, obtains the appointed target agent address according to the real IP of the host and the agent rule, and selects the actual target agent address according to whether the agent rule is available, therefore, the request can be forwarded to the new target agent address by configuring the new target agent address, the webpack configuration and the node service restart are not required to be modified for many times, the agent switching time can be reduced, the dependence of rear-end personnel on front-end personnel can be reduced, and the agent and forwarding of the request between the client and the server can be realized quickly and conveniently.
Drawings
FIG. 1 is a flow chart of a proxy service method according to an embodiment of the invention;
FIG. 2 is a block diagram of a proxy service platform according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a process for a front-end developer to use a proxy service platform, according to an embodiment of the invention;
FIG. 4 is a diagram illustrating a process for a back-end developer to use the proxy service platform according to an embodiment of the 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 proxy service method, the proxy service platform, the computer device, and the storage medium according to the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
The proxy service method of the embodiment of the invention can be executed by the middle layer of the browser and the Web server.
As shown in fig. 1, the proxy service method according to the embodiment of the present invention includes the following steps:
s1, when the host initiates the request, the ID of the proxy service is obtained through the request path, and the real IP of the host is obtained through the request header.
The user operates the host running the browser and can send a request through the browser. In one embodiment of the invention, the ID of the proxy service carried in the request path/proxy/: ID can be obtained, and the Real IP of the host carried in the X-Real-IP field of the request header can be obtained.
And S2, acquiring the default target proxy address and proxy rule of the proxy service through the ID of the proxy service.
The database stores the corresponding relation between the proxy service and the target proxy address thereof and between the proxy service and the proxy rule thereof, and the target proxy address of the proxy service stored in the database is the default target proxy address of the proxy service.
And searching the corresponding relation stored in the database, such as a corresponding relation table, according to the ID of the proxy service, so as to obtain the default target proxy address and the proxy rule of the proxy service. If the default target proxy address of the proxy service is found successfully, step S3 is executed, and if the default target proxy address of the proxy service is not found successfully, the proxy fails.
In an embodiment of the invention, the middle layer for executing the agent service method can be a front-end and back-end integrated management service platform built on the basis of a node, the platform supports interface configuration, and a user can newly add the agent service and the default target agent address and the agent rule thereof through the platform, and can edit and delete the agent service and the default target agent address and the agent rule thereof.
The agent rule includes target agent address that the host needs to take agent, namely, appointed target agent address, and the user can configure the appointed target agent address corresponding to one or some hosts when adding and editing the agent rule. It should be noted that the designated target proxy addresses corresponding to the multiple hosts may be different, partially the same, or all the same.
When configuring a default target proxy address corresponding to a certain proxy service or a designated target proxy address corresponding to a certain host, a user can manually edit the default target proxy address or directly and quickly select the default target proxy address or the designated target proxy address in a list configured before.
In addition, the user can also carry out enabling and disabling operations on the agent rule through the platform.
And S3, acquiring the appointed target proxy address of the proxy service according to the real IP of the host and the proxy rule.
Matching is performed in the proxy rule acquired in step S2 according to the real IP of the host, and a specified target proxy address to which the host needs to proxy can be obtained.
S4, whether the agent rule is available is judged.
That is, it is determined whether the proxy rule of the proxy service acquired in step S2 is disabled.
In one embodiment of the invention, whether the agent rule is available may be determined by obtaining the status value of the agent rule. If the status value is 1, the proxy rule is available, and if the status value is 0, the proxy rule is not available.
S5, if the proxy rule is available, selecting the specified target proxy address as the actual target proxy address.
S6, selecting the default target proxy address as the actual target proxy address if the proxy rule is not available.
S7, the request is forwarded to the actual target proxy address.
In one embodiment of the invention, the request may be forwarded to the actual target agent address by http-proxy-middleware.
According to the proxy service method provided by the embodiment of the invention, the default target address and the proxy rule are obtained according to the ID of the proxy service, the appointed target proxy address is obtained according to the real IP of the host and the proxy rule, and the actual target proxy address is selected according to whether the proxy rule is available or not, so that the request can be forwarded to the new target proxy address by configuring the new target proxy address without modifying webpack configuration and restarting the node service for many times, the proxy switching time can be reduced, the dependence of rear-end personnel on front-end personnel can be reduced, and the proxy and forwarding of the request between the client and the service end can be realized quickly and conveniently.
In order to implement the proxy service method of the above embodiment, the invention further provides a proxy service platform.
As shown in fig. 2, the proxy service platform of the embodiment of the present invention is used as an intermediate layer between a browser and a server, and includes a first obtaining module 10, a second obtaining module 20, a third obtaining module 30, a determining module 40, a selecting module 50, and a forwarding module 60. The first obtaining module 10 is configured to obtain an ID of the proxy service through a request path when the host initiates a request, and obtain a real IP of the host through a request header; the second obtaining module 20 is configured to obtain a default target proxy address and a proxy rule of the proxy service through an ID of the proxy service; the third obtaining module 30 is configured to obtain a specified target proxy address of the proxy service according to the real IP of the host and the proxy rule; the judging module 40 is used for judging whether the agent rule is available; the selection module 50 is configured to select a specified target proxy address as an actual target proxy address when the proxy rule is available, and select a default target proxy address as the actual target proxy address when the proxy rule is unavailable; the forwarding module 60 is used to forward the request to the actual target proxy address.
In an embodiment of the present invention, the first obtaining module 10 obtains the request path/proxy/: ID of the proxy service carried in ID, and the first obtaining module 10 obtains the Real IP of the host carried in the X-Real-IP field of the request header.
The database stores the corresponding relation between the proxy service and the target proxy address thereof and between the proxy service and the proxy rule thereof, and the target proxy address of the proxy service stored in the database is the default target proxy address of the proxy service.
The second obtaining module 20 searches the corresponding relationship stored in the database, for example, the corresponding relationship table, according to the ID of the proxy service, so as to obtain the default target proxy address and the proxy rule of the proxy service. If the default target proxy address of the proxy service is found successfully, the third obtaining module 30 obtains the specified target proxy address of the proxy service according to the real IP of the host and the proxy rule, and if the default target proxy address of the proxy service is not found successfully, the proxy fails.
In an embodiment of the invention, the agent service platform can be a front-end and back-end integrated management service platform built on the basis of the node, the agent service platform supports interface configuration, and a user can newly add agent service and default target agent address and agent rule thereof through the agent service platform, and can edit and delete the agent service and default target agent address and agent rule thereof.
The agent rule includes target agent address that the host needs to take agent, namely, appointed target agent address, and the user can configure the appointed target agent address corresponding to one or some hosts when adding and editing the agent rule. It should be noted that the designated target proxy addresses corresponding to the multiple hosts may be different, partially the same, or all the same.
When configuring a default target proxy address corresponding to a certain proxy service or a designated target proxy address corresponding to a certain host, a user can manually edit the default target proxy address or directly and quickly select the default target proxy address or the designated target proxy address in a list configured before.
In addition, the user can also carry out enabling and disabling operations on the agent rule through the agent service platform.
The third obtaining module 30 performs matching in the agent rule obtained by the second obtaining module 20 according to the real IP of the host, and can obtain the specified target agent address that the host needs to take an agent.
The determination module 40 may determine whether the proxy rule of the proxy service acquired by the second acquisition module 20 is disabled.
In one embodiment of the present invention, the determining module 40 may determine whether the agent rule is available by obtaining a status value of the agent rule. If the status value is 1, the proxy rule is available, and if the status value is 0, the proxy rule is not available.
In one embodiment of the invention, the forwarding module 60 may forward the request to the actual target agent address over http-proxy-middleware.
According to the proxy service platform provided by the embodiment of the invention, the default target address and the proxy rule are obtained according to the ID of the proxy service, the appointed target proxy address is obtained according to the real IP of the host and the proxy rule, and the actual target proxy address is selected according to whether the proxy rule is available or not, so that the request can be forwarded to the new target proxy address by configuring the new target proxy address without modifying webpack configuration and restarting the node service for many times, the proxy switching time can be reduced, the dependence of rear-end personnel on front-end personnel can be reduced, and the proxy and forwarding of the request between the client and the service end can be realized quickly and conveniently.
As shown in fig. 3, when using the proxy service platform according to the embodiment of the present invention, a front-end developer may first set a target in a proxy of webpack-dev-service as an API provided by the proxy service platform, and set an X-Real-IP, and then the front-end developer initiates a request by accessing a browser, where the request is identified by the proxy service platform and forwarded to a target service.
As shown in fig. 4, when a back-end developer uses the proxy service platform according to the embodiment of the present invention, a precondition is that a front end and a back end of a project are separated, and proxy is performed through nginx, an API provided by the proxy service platform may be configured in a nginx reverse proxy first, and an X-Real-IP is set, and then, similarly, the back-end developer initiates a request by accessing a browser, and the request is identified by the proxy service platform and forwarded to a target service.
In a specific embodiment of the present invention, the front-end configuration of the proxy service is as follows:
Figure BDA0003161932960000081
the target in the proxy is set as an API provided by the proxy service platform, and a request header X-Real-IP is required to be added to a request body in the onProxReq, and the value of the request header X-Real-IP is the Real IP of the host initiating the request.
The invention further provides a computer device corresponding to the embodiment.
The computer device of the embodiment of the invention comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and when the processor executes the computer program, the proxy service method according to the embodiment of the invention can be realized.
According to the computer equipment of the embodiment of the invention, when the processor executes the computer program stored on the memory, the default target address and the proxy rule are obtained according to the ID of the proxy service, the appointed target proxy address is obtained according to the real IP of the host and the proxy rule, and the actual target proxy address is selected according to the availability of the proxy rule, so that the request can be forwarded to the new target proxy address by configuring the new target proxy address, the webpack configuration and the node service restart are not required to be modified for many times, the proxy switching time can be reduced, the dependence of backend personnel on the frontend personnel can be reduced, and the proxy and forwarding of the request between the client and the server can be realized quickly and conveniently.
The invention also provides a non-transitory computer readable storage medium corresponding to the above embodiment.
A non-transitory computer-readable storage medium of an embodiment of the present invention has stored thereon a computer program that, when executed by a processor, can implement the proxy service method according to the above-described embodiment of the present invention.
According to the non-transitory computer readable storage medium of the embodiment of the invention, when the processor executes the computer program stored on the processor, the default target address and the proxy rule are obtained according to the ID of the proxy service, the specified target proxy address is obtained according to the real IP of the host and the proxy rule, and the actual target proxy address is selected according to whether the proxy rule is available, so that the request can be forwarded to the new target proxy address by configuring the new target proxy address, the webpack configuration and the node service restart are not required to be modified for many times, the proxy switching time can be reduced, the dependence of back-end personnel on front-end personnel can be reduced, and the proxy and forwarding of the request between the client and the server can be realized quickly and conveniently.
In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. The meaning of "plurality" is two or more unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A proxy service method, comprising the steps of:
when a host initiates a request, acquiring an ID of proxy service through a request path, and acquiring a real IP of the host through a request head;
acquiring a default target proxy address and a proxy rule of the proxy service through the ID of the proxy service;
acquiring an appointed target proxy address of proxy service according to the real IP of the host and the proxy rule;
judging whether the agent rule is available;
selecting a specified target proxy address as an actual target proxy address if the proxy rule is available;
selecting a default target proxy address as an actual target proxy address if the proxy rule is not available;
forwarding the request to the actual target proxy address.
2. The proxy service method of claim 1, wherein obtaining the ID of the proxy service carried in the request path/proxy/: ID obtains the Real IP of the host carried in the X-Real-IP field of the request header.
3. The proxy service method according to claim 1, wherein the status value of the proxy rule is obtained to determine whether the proxy rule is available.
4. The proxy service method of claim 1, wherein the request is forwarded to the actual target proxy address by http-proxy-middleware.
5. A proxy service platform, comprising:
the first acquisition module is used for acquiring the ID of the proxy service through a request path and acquiring the real IP of the host through a request head when the host initiates a request;
the second acquisition module is used for acquiring the default target proxy address and the proxy rule of the proxy service through the ID of the proxy service;
a third obtaining module, configured to obtain a specified target proxy address of the proxy service according to the real IP of the host and the proxy rule;
the judging module is used for judging whether the agent rule is available;
a selection module, configured to select a specified target proxy address as an actual target proxy address when the proxy rule is available, and select a default target proxy address as the actual target proxy address when the proxy rule is unavailable;
a forwarding module for forwarding the request to the actual target proxy address.
6. The proxy service platform of claim 5, wherein the first obtaining module obtains the ID of the proxy service carried in the request path/proxy/: ID, and the first obtaining module obtains the Real IP of the host carried in the X-Real-IP field of the request header.
7. The broker service platform of claim 5, wherein the determination module determines whether the broker rule is available by obtaining a status value of the broker rule.
8. The proxy service platform of claim 5, wherein the forwarding module forwards the request to the actual target proxy address via http-proxy-middleware.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the proxy service method according to any one of claims 1-4 when executing the computer program.
10. A non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the proxy service method according to any one of claims 1-4.
CN202110793493.9A 2021-07-14 2021-07-14 Proxy service method, proxy service platform, computer device, and storage medium Active CN113556388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110793493.9A CN113556388B (en) 2021-07-14 2021-07-14 Proxy service method, proxy service platform, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110793493.9A CN113556388B (en) 2021-07-14 2021-07-14 Proxy service method, proxy service platform, computer device, and storage medium

Publications (2)

Publication Number Publication Date
CN113556388A true CN113556388A (en) 2021-10-26
CN113556388B CN113556388B (en) 2023-06-13

Family

ID=78131698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110793493.9A Active CN113556388B (en) 2021-07-14 2021-07-14 Proxy service method, proxy service platform, computer device, and storage medium

Country Status (1)

Country Link
CN (1) CN113556388B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118900282A (en) * 2024-10-09 2024-11-05 思创数码科技股份有限公司 A big data support method, system, computer and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060056317A1 (en) * 2004-09-16 2006-03-16 Michael Manning Method and apparatus for managing proxy and non-proxy requests in telecommunications network
CN101422009A (en) * 2006-04-14 2009-04-29 高通股份有限公司 Automatic selection of home agent
CN101662503A (en) * 2009-09-14 2010-03-03 金蝶软件(中国)有限公司 Information transmission method, proxy server and service system in network
CN102447708A (en) * 2012-01-14 2012-05-09 杭州安恒信息技术有限公司 Communication implementation method of application layer transparent proxy technology
US20130097225A1 (en) * 2010-12-13 2013-04-18 Vertical Computer Systems, Inc. Mobile Proxy Server for Internet Server Having a Dynamic IP Address
US9207953B1 (en) * 2004-04-28 2015-12-08 F5 Networks, Inc. Method and apparatus for managing a proxy autoconfiguration in SSL VPN
US20160119477A1 (en) * 2014-10-23 2016-04-28 Bruce A. Sharpe Method for connecting users with agents based on user values dynamically determined according to a set of rules or algorithms
US20160197830A1 (en) * 2015-01-07 2016-07-07 Opendns, Inc. Selective Routing Of Network Traffic For Remote Inspection In Computer Networks
CN107453989A (en) * 2017-09-28 2017-12-08 上海盈联电信科技有限公司 Internet behavior information processing method for enterprise gateway
CN107770138A (en) * 2016-08-22 2018-03-06 阿里巴巴集团控股有限公司 Specify the method and proxy server, client of IP address
CN110049081A (en) * 2018-01-17 2019-07-23 广东亿迅科技有限公司 For build and using high availability Docker private library method and system
CN112272158A (en) * 2020-09-16 2021-01-26 厦门网宿有限公司 Data proxy method, system and proxy server
US20210099528A1 (en) * 2019-10-01 2021-04-01 Magnet Forensics Inc. System and method for targeted endpoint data acquisition

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9207953B1 (en) * 2004-04-28 2015-12-08 F5 Networks, Inc. Method and apparatus for managing a proxy autoconfiguration in SSL VPN
US20060056317A1 (en) * 2004-09-16 2006-03-16 Michael Manning Method and apparatus for managing proxy and non-proxy requests in telecommunications network
CN101422009A (en) * 2006-04-14 2009-04-29 高通股份有限公司 Automatic selection of home agent
CN101662503A (en) * 2009-09-14 2010-03-03 金蝶软件(中国)有限公司 Information transmission method, proxy server and service system in network
US20130097225A1 (en) * 2010-12-13 2013-04-18 Vertical Computer Systems, Inc. Mobile Proxy Server for Internet Server Having a Dynamic IP Address
CN102447708A (en) * 2012-01-14 2012-05-09 杭州安恒信息技术有限公司 Communication implementation method of application layer transparent proxy technology
US20160119477A1 (en) * 2014-10-23 2016-04-28 Bruce A. Sharpe Method for connecting users with agents based on user values dynamically determined according to a set of rules or algorithms
US20160197830A1 (en) * 2015-01-07 2016-07-07 Opendns, Inc. Selective Routing Of Network Traffic For Remote Inspection In Computer Networks
CN107770138A (en) * 2016-08-22 2018-03-06 阿里巴巴集团控股有限公司 Specify the method and proxy server, client of IP address
CN107453989A (en) * 2017-09-28 2017-12-08 上海盈联电信科技有限公司 Internet behavior information processing method for enterprise gateway
CN110049081A (en) * 2018-01-17 2019-07-23 广东亿迅科技有限公司 For build and using high availability Docker private library method and system
US20210099528A1 (en) * 2019-10-01 2021-04-01 Magnet Forensics Inc. System and method for targeted endpoint data acquisition
CN112272158A (en) * 2020-09-16 2021-01-26 厦门网宿有限公司 Data proxy method, system and proxy server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
龙越: "代理服务器在企业局域网中的应用", 有色冶金设计与研究 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118900282A (en) * 2024-10-09 2024-11-05 思创数码科技股份有限公司 A big data support method, system, computer and storage medium

Also Published As

Publication number Publication date
CN113556388B (en) 2023-06-13

Similar Documents

Publication Publication Date Title
CN103095687B (en) Metadata processing method and device
US6970959B1 (en) Multi-execute system calls
CN112445579B (en) Zero terminal data processing system and file copying method and device thereof
CN112015595B (en) Master-slave database switching method, computing device and storage medium
CN108897858B (en) Distributed cluster index fragmentation evaluation method and device and electronic equipment
CN111858083A (en) Remote service calling method and device, electronic equipment and storage medium
CN113300953B (en) A management method, system and related device for a multi-path failover group
CN113094255A (en) Simulation test method, device and system for data interface
CN110286960A (en) Image file loading method and device, electronic equipment and storage medium
CN110928679B (en) Resource allocation method and device
CN113556388B (en) Proxy service method, proxy service platform, computer device, and storage medium
CN112685175B (en) Construction method and device of service topological graph and computer readable storage medium
CN109753229A (en) Data migration method, apparatus, network attached storage device and storage medium
CN111459484A (en) The back-end data simulation method when the front-end and back-end of the web page are separated and developed
CN110837431A (en) Service control method, service control device, computer equipment and computer-readable storage medium
CN111625264B (en) Method, device, equipment and medium for upgrading multi-level management system
CN110502238A (en) A kind of method and device of front and back end joint debugging
CN107341196B (en) Relational graph display method and device
CN109412944B (en) Request forwarding method and device based on micro-service and server
CN111669791A (en) A measurement control method and device
CN114968024B (en) Micro-service menu management method and device, electronic equipment and storage medium
US11853814B2 (en) Automatically generating events
CN114968112B (en) RAID configuration method, device, equipment and medium
CN112732362B (en) Method and device for accessing nationwide software resources, electronic equipment and storage medium
CN112988584B (en) Business testing method, device, computer 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