Web page proxy system and communication method thereof
A communication method and web technology, applied in transmission systems, electrical components, etc., can solve problems such as inconvenience and the inability of web proxy to correctly handle user network requests.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] see figure 1 , in this embodiment, a communication method of a web page proxy system, the web page proxy system includes a proxy server, the proxy server and the user terminal are connected to the network, and the communication method includes:
[0064] Step 100. The proxy server receives a network request sent by a user terminal, and the network request is used to request target content from a target server in the network.
[0065] Step 101, the proxy server obtains the address of the target server through the getsockname() function provided by LINUX and judges whether the network request is an HTTP request through the expression of the network request, if so, execute step 102, otherwise execute step 104.
[0066] Obtain the address of the target server included in the network request through the LINUX method, and the address will not be changed due to the cache processing of the network request, so as to ensure that the proxy server processes the network request accor...
Embodiment 2
[0082] see image 3 , a communication method of a web page proxy system, the communication method of this embodiment is basically the same as the communication method of Embodiment 1, the only difference is that step 103 is:
[0083] Step 1031 , judging whether the cache of the proxy server includes the target content, if yes, execute step 1032 , otherwise, execute step 1033 .
[0084] Step 1032: Determine whether the time difference between the writing time of the target content in the cache of the proxy server and the current time is less than a preset duration, and if so, the proxy server sends the target content in the cache to the user terminal End the process, otherwise execute step 1033.
[0085] Step 1033, the proxy server forwards the network request to the target server according to the address, and then receives the target content sent by the target server.
[0086] Step 1034, the proxy server writes the target content into the cache and sends the target content t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com