CN106657277B - Http proxy service method, server and system - Google Patents

Http proxy service method, server and system Download PDF

Info

Publication number
CN106657277B
CN106657277B CN201611041739.2A CN201611041739A CN106657277B CN 106657277 B CN106657277 B CN 106657277B CN 201611041739 A CN201611041739 A CN 201611041739A CN 106657277 B CN106657277 B CN 106657277B
Authority
CN
China
Prior art keywords
request
http
address
queue
agent
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
CN201611041739.2A
Other languages
Chinese (zh)
Other versions
CN106657277A (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.)
Shanghai Ctrip Business Co Ltd
Original Assignee
Shanghai Ctrip Business 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 Shanghai Ctrip Business Co Ltd filed Critical Shanghai Ctrip Business Co Ltd
Priority to CN201611041739.2A priority Critical patent/CN106657277B/en
Publication of CN106657277A publication Critical patent/CN106657277A/en
Application granted granted Critical
Publication of CN106657277B publication Critical patent/CN106657277B/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/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

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

Abstract

The invention discloses an Http proxy service method, a server and a system, wherein the Http proxy service method comprises the following steps: obtaining an Http request and placing the Http request into an agent request queue; the agent request queue acquires a network outlet IP address; the agent request queue executes the Http requests in sequence according to the queue order, and feeds back the request result to the IP address corresponding to the Http request. The invention isolates the IP address of the Http request and the IP address of the actual execution access by using the Http queue, thereby realizing the purpose of hiding and protecting the IP which initiates the Http request.

Description

Http proxy service method, server and system
Technical Field
The invention relates to a proxy service method, a server and a system, in particular to an Http (hypertext transfer protocol) proxy service method, a server and a system.
Background
The existing Http proxy service mainly depends on providing a fixed IP address for a Http request party to realize proxy service of the Http request, which is not beneficial to hiding and protecting the IP address of the Http request party, and the fixed IP address has limited resources and cannot realize quick processing of the Http request.
Disclosure of Invention
The invention mainly solves the technical problems that: in the prior art, all Http proxy service outlets (IPs) are fixed IP addresses (Internet Protocol addresses), and the number of IP addresses is limited, which cannot achieve the purpose of really hiding and protecting the IP Address of the Http request party. In order to overcome the defect that the IP address of an Http request party cannot be effectively hidden and protected in the prior art, the Http proxy service method, the Http proxy server and the Http proxy service system are provided, and the IP address of the Http request and the IP address of the actual execution access are isolated by using the Http queue, so that the purpose of hiding and protecting the IP address of the Http request party is realized.
The invention solves the technical problems through the following technical scheme:
the invention provides an Http proxy service method, which is characterized by comprising the following steps:
obtaining an Http request and placing the Http request into an agent request queue;
the agent request queue acquires a network outlet IP address;
the agent request queue executes the Http requests in sequence according to the queue order, and feeds back the request result to the IP address corresponding to the Http request.
In the invention, the Http queue is used for isolating the IP address of the Http request from the IP address of the actual execution access, thereby realizing the purpose of hiding and protecting the IP for initiating the Http request.
Preferably, the network egress IP address is updated periodically.
Preferably, the network outlet IP address is an ADSL (Asymmetric Digital subscriber line) IP address.
The invention also provides an Http proxy server, which is characterized by comprising the following components: the system comprises an agent request queue, a request interface, a queue message acquisition interface and a queue message write-back interface;
the request interface acquires an Http request and writes the Http request into the proxy request queue;
the queue message acquisition interface sequentially acquires Http requests from the agent request queue according to a queue sequence, and pushes and executes the Http requests through the acquired network outlet IP address;
the queue message write-back interface acquires a request result obtained by executing the Http request and feeds the request result back to the agent request queue;
and the agent request queue pushes the request result to an IP address corresponding to the Http request through the request interface.
The Http proxy server of the invention isolates the Http request party from the network for executing the actual request, thereby realizing the protection of the Http request party IP address.
Preferably, the request interface obtains the Http request through a TCP Protocol (Transmission Control Protocol); the request interface also feeds back a request result through the TCP protocol.
Preferably, the queue message acquiring interface pushes and executes an Http request through a TCP protocol; and the queue message write-back interface acquires a request result through a TCP protocol.
The invention also provides an Http proxy service system, which is characterized by comprising the following components: the system comprises a proxy server, a calling end and a request processing end;
the calling terminal respectively generates Http requests and writes the Http requests into an agent request queue of the agent server;
the agent request queue sequentially pushes the Http request to the request processing terminal according to the queue order;
the request processing terminal acquires an IP address from a network, executes the Http request based on the IP address to obtain a request result, and feeds back the request result to the agent request queue;
and the proxy request queue respectively pushes the request results to a calling terminal sending the Http request.
The calling end and the request processing end in the Http proxy service system can use different IP addresses, so that the IP address of the calling end is protected, and the random change of the IP address of the request processing end is realized.
Preferably, the proxy server and the calling terminal, and the proxy server and the request processing terminal are in communication transmission based on a TCP protocol.
Preferably, the network is an ADSL network.
At present, an ADSL network has no fixed IP address, so that the ADSL network can not be used for providing Http proxy service, and the Http proxy service system and the method of the invention can realize Http proxy service in the ADSL network.
On the basis of the common knowledge in the field, the above preferred conditions can be combined randomly to obtain the preferred embodiments of the invention.
The positive progress effects of the invention are as follows:
the invention isolates the IP address of the Http request and the IP address of the actual execution access through the Http queue, thereby realizing the purpose of hiding and protecting the IP which initiates the Http request. That is, different IP addresses can be used between the calling end and the request processing end, so that the IP address protection of the calling end is realized, and meanwhile, the IP address of the request processing end can be randomly changed, and the effective utilization of dynamic IP resources is realized.
Drawings
Fig. 1 is a schematic structural diagram of an Http proxy service system according to embodiment 1 of the present invention.
Fig. 2 is a schematic structural diagram of an Http proxy server according to embodiment 2 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
In order to realize the protection of the IP address of the calling terminal and simultaneously realize the effective utilization of the dynamic IP resource of the request processing terminal, the invention realizes the random change of the IP address of the outlet while hiding and isolating the IP address of the user by isolating the IP address of the Http request from the IP address of the actual execution access and dynamically allocating the IP address of the actual access.
The present invention is further illustrated in detail by the following examples.
Example 1
As shown in fig. 1, an Http proxy service system proxy server 1, a caller 2, and a request handler 3 of this embodiment are provided, where the Http proxy service system Http proxy service method of this embodiment has the following flows:
step 1, each calling terminal 2 sends an Http request to the proxy server 1.
Step 2, the agent server 1 receives the Http request, and puts the Http request into a request queue (not shown in the figure).
And step 3, each request processing terminal 3 respectively acquires an Http request, forwards the Http request and acquires a Http request result.
And 4, the request processing terminal 3 sends the Http request result back to the proxy server terminal 1.
And 5, the proxy server 1 feeds back the Http request result to each calling terminal 2 respectively.
The number of the call terminals 2 and the request processing terminals 3 may be any number, and the number of the call terminals 2 and the request processing terminals 3 is not limited in this embodiment and the drawings thereof.
For example, for a single caller and a single request handler, the Http proxy service system works as follows:
first, the IP address of the calling terminal 2 is 1.2.3.4, and the calling terminal 2 wants to access http:// www.ctrip.com.
The calling terminal 2 sends a request which wants to access http:// www.ctrip.com to the proxy server terminal 1 through a TCP protocol.
After receiving the request, the agent server 1 puts the request content into a queue in a system memory, and waits for the request processing terminal 3 to obtain processing.
The request processing end 3 uses the ADSL network, can control the re-dialing ADSL network, after every re-dialing, the network outlet IP address will change. Assume that the IP address of the network egress after this redial is 6.7.8.9. By the method, the dynamic IP address allocation at the actual access position can be realized, and the dynamic IP resources can be more effectively utilized.
The request processing end 3 periodically redials the ADSL network, for example, after redialing, the original IP address 6.7.8.9 changes, for example, to 9.8.7.6, and changes to other IP addresses after redialing again, thereby achieving the random change of the proxy egress IP address.
The request processing terminal 3 obtains the access request (i.e. the request for accessing http:// www.ctrip.com) in the queue from the proxy server terminal 1 through the TCP protocol.
The request processing end 3 accesses http:// www.ctrip.com, and the IP address of the request received by the ctrip.com server is 6.7.8.9 instead of 1.2.3.4, so the purpose of hiding and protecting the IP address of the calling end 2 is achieved.
The request processing terminal 3 returns the result to the proxy server terminal 1 through the TCP protocol. Then the proxy server 1 feeds back the request result to the calling terminal 2 through the TCP protocol.
And the calling end 2 receives the returned content of the Http:// www.ctrip.com, the local calling is finished, and the user realizes the Http access request.
Example 2
As shown in fig. 2, the Http proxy server of this embodiment includes a proxy request queue 11, a request interface 12, a queue message obtaining interface 13, and a queue message write-back interface 14, where the request interface 12 obtains the Http request through a TCP protocol and writes the Http request into the proxy request queue 11.
Then, the queue message obtaining interface 13 sequentially obtains Http requests from the proxy request queue 11 according to the queue order, and pushes and executes the Http requests according to the TCP protocol through the obtained network egress IP address.
After the external processing unit processes the Http request, the queue message write-back interface 14 obtains a request result obtained by executing the Http request through a TCP protocol, and feeds the request result back to the agent request queue 11.
Thereafter, the proxy request queue 11 pushes the request result to the user corresponding to the IP address corresponding to the Http request according to the TCP protocol through the request interface 12.
This embodiment may also replace the proxy server in embodiment 1 to implement transmission and transfer of requests and request results between the calling end and the request processing end.
As can be seen from the above description of the specific embodiments of the Http proxy service method and system, it is clear to those skilled in the art that the Http proxy service process of the present application can be implemented by software plus a necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM (read only memory/random access memory), a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. Such as personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs (personal computers), minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that these are by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (2)

1. An Http proxy service system, comprising: the system comprises a proxy server, a calling end and a request processing end;
the calling terminal respectively generates an Http request and writes the Http request into an agent request queue of the agent server terminal, wherein the calling terminal has an IP address;
the agent request queue sequentially pushes the Http request to the request processing terminal according to the queue order;
the request processing terminal acquires an IP address from an ADSL network, executes the Http request based on the IP address to obtain a request result, and feeds back the request result to the agent request queue;
and the proxy request queue respectively pushes the request results to a calling terminal sending the Http request.
2. The Http proxy service system as recited in claim 1, wherein the proxy server and the caller and the proxy server and the request handler communicate based on TCP protocol.
CN201611041739.2A 2016-11-24 2016-11-24 Http proxy service method, server and system Active CN106657277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611041739.2A CN106657277B (en) 2016-11-24 2016-11-24 Http proxy service method, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611041739.2A CN106657277B (en) 2016-11-24 2016-11-24 Http proxy service method, server and system

Publications (2)

Publication Number Publication Date
CN106657277A CN106657277A (en) 2017-05-10
CN106657277B true CN106657277B (en) 2020-06-12

Family

ID=58811219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611041739.2A Active CN106657277B (en) 2016-11-24 2016-11-24 Http proxy service method, server and system

Country Status (1)

Country Link
CN (1) CN106657277B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228172A (en) * 2018-01-11 2018-06-29 携程旅游网络技术(上海)有限公司 The write method and system of script
CN109756501B (en) * 2019-01-02 2020-05-22 中国科学院信息工程研究所 High-privacy network proxy method and system based on HTTP (hyper text transport protocol)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252576A (en) * 2008-03-13 2008-08-27 苏州爱迪比科技有限公司 Method for detecting virus based on network flow with DFA in gateway
CN103873597A (en) * 2014-04-15 2014-06-18 厦门市美亚柏科信息股份有限公司 Distributed webpage downloading method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6910063B1 (en) * 2000-06-28 2005-06-21 Microsoft Corporation System and method of enhancing web server throughput in single and multiple processor systems
CN101325523B (en) * 2007-06-11 2014-01-01 纬创资通股份有限公司 Method for establishing network connecting line between client and server and correlated system thereof
CN104125243B (en) * 2013-04-23 2018-01-02 浙江大学 A kind of method for penetrating Intranet and remotely connecting large-scale virtual machine
CN103747097B (en) * 2014-01-22 2016-08-24 电子科技大学 The system and method for mobile terminal HTTP request polymeric compressing
CN104735174B (en) * 2015-03-30 2018-04-13 北京奇艺世纪科技有限公司 A kind of implementation method and device of HTTP Transparent Proxies

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252576A (en) * 2008-03-13 2008-08-27 苏州爱迪比科技有限公司 Method for detecting virus based on network flow with DFA in gateway
CN103873597A (en) * 2014-04-15 2014-06-18 厦门市美亚柏科信息股份有限公司 Distributed webpage downloading method and system

Also Published As

Publication number Publication date
CN106657277A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106357699B (en) Network system, service platform login method and system
US9185077B2 (en) Isolation proxy server system
CN109154968B (en) System and method for secure and efficient communication within an organization
CN111786998A (en) Authority management method and device based on micro-service calling and storage medium
CN109450766B (en) Access processing method and device for work area level VPN
CN110933075B (en) Service calling method and device, electronic equipment and storage medium
CN105554085B (en) A kind of dynamic timeout treatment method and apparatus based on server connection
WO2015021873A1 (en) Method, platform server, and system of data pushing
WO2015027892A1 (en) Methods and terminals for sharing web browsing contents
CN106657277B (en) Http proxy service method, server and system
CN111064771A (en) Network request processing method and system
CN109889468B (en) Network data transmission method, system, device, equipment and storage medium
CN111200606A (en) Deep learning model task processing method, system, server and storage medium
CN114329533A (en) Secure multiparty computing method and related device
CN111131439A (en) iSCSI-based message transmission method, device, equipment and storage medium
US20190370293A1 (en) Method and apparatus for processing information
CN1812410B (en) File transfer management systems and methods
JP6074550B2 (en) Web page push method and apparatus, and terminal
CN107395663B (en) Data acquisition method and device
CN111953718B (en) Page debugging method and device
CN111262779A (en) Method, device, server and system for acquiring data in instant messaging
CN105959248B (en) The method and device of message access control
EP2701068B1 (en) Network access system
CN102148869B (en) Method and device for JAVA application to transfer information to local
TW201644249A (en) Devices and methods for performing TCP handshakes

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