WO2017167051A1 - 一种调用文件方法及装置 - Google Patents
一种调用文件方法及装置 Download PDFInfo
- Publication number
- WO2017167051A1 WO2017167051A1 PCT/CN2017/077273 CN2017077273W WO2017167051A1 WO 2017167051 A1 WO2017167051 A1 WO 2017167051A1 CN 2017077273 W CN2017077273 W CN 2017077273W WO 2017167051 A1 WO2017167051 A1 WO 2017167051A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- resource file
- debugged
- virtual server
- access path
- browser
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/44—Program or device authentication
Definitions
- the present application relates to the field of information technology, and in particular, to a method and an apparatus for calling a file.
- a person When browsing a webpage, a person generally establishes a communication connection with a server through a browser (or an application having a browser kernel), so that the browser can send a request for obtaining a webpage page to the server, and obtain the return of the server. After the web page, the web page is displayed.
- the web page is composed of a set of code (for example, composed of html5 code), and the code of the web page points to various resource files (for example, a JavaScript program source file, a web page style file, etc.) is also composed of respective codes. , but the code is written manually, so as long as it is the code, there may be defects or flaws. Therefore, before the server provides a webpage to the network (that is, before a webpage is put online), generally, in the offline environment, each code in the webpage is tested first, that is, offline test.
- code for example, composed of html5 code
- resource files for example, a JavaScript program source file, a web page style file, etc.
- the server can only use the simulated online data to test the webpage, which makes the results of offline testing not necessarily accurate, that is, through offline testing to determine the webpage without problems, after going online There may also be problems.
- the staff needs to debug the code of the resource file in question on the server side, but since the server is generally busy, the service that performs the debugging operation in the server may need to wait in line until there is an idle thread to perform the debugging. Operating the business, so it takes longer to debug the code of the resource file that has the problem each time.
- the http proxy method is used, and the resource file to be debugged is mapped to the terminal local, so that the real online data can be used to debug the resource file.
- the http proxy method is specifically as shown in FIG. 1 .
- FIG. 1 is a method of a prior art http proxy, specifically including:
- S101 Determine a resource file that needs to be debugged in the webpage, and download the resource file as a resource file to be debugged.
- the first end needs to determine the resource file that needs to be debugged in the webpage, and then download the file to the terminal locally, as the resource file to be debugged. So that the resource file to be debugged can be debugged later.
- S102 Establish a virtual server, and determine an access path for the to-be debugged resource file.
- the resource file to be debugged needs to be obtained through a local browser. Specifically, the browser obtains the access path of the resource file to be debugged (that is, the domain name of the resource file to be debugged) by running the code in the webpage, and then provides the resource file to be debugged according to the access path. The server initiates a request to invoke the resource file, and finally obtains the to-be-debug resource file returned by the server.
- the access path of the resource file to be debugged that is, the domain name of the resource file to be debugged
- the terminal since the staff wants to directly modify the resource file to be debugged locally, at this time, the terminal also needs to be disguised as a server to deceive the browser, so that the browser obtains the local by running the same webpage code. Download the resource file to be debugged. To achieve the purpose of debugging the resource file to be debugged locally on the terminal.
- the terminal needs to establish a virtual server locally, and is to be stored locally.
- the debug resource file determines the access path (ie, the virtual domain name of the resource file to be debugged).
- the server of the resource file is no longer accessed, but the local virtual server is accessed.
- the network configuration of the terminal needs to be modified, so that the terminal replaces the access path of the resource file with the access to the local resource file to be debugged when receiving the request for calling the resource file initiated by the browser. Access path.
- the virtual server When the browser sends a request to the server on the network to invoke the resource file, the virtual server replaces the server on the network to receive the call request, and returns the to-be debugged resource file to the server, and causes the browser to It is determined that the resource file returned by the corresponding server on the network is received.
- the resource file to be debugged is downloaded to the local device as the resource file to be debugged
- the resource file to be debugged is debugged locally on the terminal, and the code in the webpage is not changed. So you can make full use of the real data on the line for debugging. Further, since the terminal can be used only for debugging the resource file to be debugged, each debugging process can be executed immediately without waiting, which improves debugging efficiency.
- the process shown in FIG. 1 can only be implemented for a web page whose web page is a Hyper Text Transfer Protocol (http).
- http Hyper Text Transfer Protocol
- the transmission between the browser and the server needs to be encrypted by communication, that is, the browser needs to utilize
- the security certificate generated by the Secure Socket Layer (Ssl) protocol is used to verify the identity of the server.
- Ssl Secure Socket Layer
- the browser cannot verify the identity of the virtual server, nor can it determine that the virtual server returns the received Debugging the security of the resource file, then for the https webpage, the browser can not even call the resource file to be debugged, which makes the staff unable to perform subsequent debugging work.
- the embodiment of the present invention provides a method and a device for calling a file, which are used to solve the problem that the existing proxy file method and the http proxy method are used, and the browser cannot be used to debug the resource file to be debugged because the security certificate cannot be provided.
- a receiving module configured to receive a replacement instruction of a network resource file in the https webpage
- An execution module configured to establish a virtual server locally according to the replacement instruction
- a replacement module configured to replace, by using the virtual server, an access path for accessing the network resource file to an access path for accessing a local resource file to be debugged;
- a root certificate module configured to generate a root certificate for the virtual server
- a sub-certificate module configured to generate a sub-certificate according to the root certificate, so that when the local browser initiates a call request for the network resource file according to the https webpage, the virtual server receives the call request, And returning the to-be-debugged resource file and the sub-certificate to the browser according to the access path of the resource file to be debugged, so that the browser acquires and executes the to-be-debug according to the sub-certificate. resource.
- An embodiment of the present application provides a method and an apparatus for calling a file.
- the method When receiving a replacement instruction for a network resource file in a https webpage, the method establishes a virtual server locally according to the replacement instruction, and accesses the virtual server through the virtual server.
- the access path of the network resource file is replaced with the access path of the local resource file to be debugged, and then the root certificate and the sub-certificate are generated for the virtual server, so that when the local browser initiates the call request for the network resource file according to the http webpage,
- the calling request is received by the virtual server, and the resource file to be debugged and the sub-certificate are returned to the browser, so that the browser can call and execute the resource file to be debugged according to the sub-certificate.
- the root server generates a root certificate and a corresponding sub-certificate, so that the virtual server can provide a security certificate to the browser, so that the browser can call the resource file to be debugged normally.
- Figure 1 is a prior art http proxy process
- FIG. 3 is a schematic structural diagram of a device for calling a file according to an embodiment of the present application.
- the terminal when receiving the replacement instruction for the network resource in the https webpage, the terminal first establishes a virtual server locally on the terminal according to the instruction, and then accesses the terminal through the virtual server.
- the access path of the network resource file is replaced with the access path of the local resource file to be debugged, and finally the root certificate and the corresponding sub-certificate are generated for the virtual server.
- the method described in the present application by generating a root certificate (ie, a self-signed certificate issued by the virtual server) for the virtual server, enables the virtual server to spoof the browser, so that the browser determines that the virtual server is Providing a server for the network resource file in the https webpage, and returning the local resource to be debugged to the browser, the sub-certificate generated by the root certificate may be returned together, so that the browser determines that the resource file to be debugged is
- the secure file finally enables the browser to call and execute the resource file to be debugged, which solves the problem that the virtual server cannot provide the security certificate, which makes it difficult to perform the proxy of the https webpage and cannot call the resource file to be debugged.
- FIG. 2 is a process for invoking a file according to an embodiment of the present disclosure, which specifically includes the following steps:
- S201 Receive a replacement instruction for a network resource file in the https webpage.
- the network resource file in the https web page needs to be debugged locally. Therefore, before the debugging starts, the local resource file to be debugged needs to be replaced with the network resource file in the https web page.
- the current resource file to be debugged may be an arbitrary file, and may be a file that only has the file identifier and the address but has no corresponding content (ie, is a blank). The file does not prevent subsequent resource files to be debugged from being called.
- the terminal may receive a replacement instruction for the network resource file in the https webpage.
- the replacement instruction may be a one-line command line for the terminal to determine a network resource file that needs to be replaced and a resource file to be debugged that is saved in advance.
- the replacement instruction includes: an identifier of the network resource file, an access path of the network resource file, an identifier of the to-be-debug resource file saved in advance, and an address of the resource file to be debugged.
- the terminal may be a personal computer (PC), a mobile phone, a tablet computer, etc.
- the network resource file may be a java script language (JavaScript, JS) program source file running on a browser, and a cascading style.
- JavaScript, JS JavaScript
- JS JavaScript
- a Cascading Style Sheets (css) file or the like can be provided by a server through a Uniform Resource Locator (URL).
- URL Uniform Resource Locator
- the music play button in the https webpage A returns a JS program source file (hereinafter referred to as an audio JS file) for calling the local player application to play the audio file after being clicked, so that the https webpage A
- an audio JS file a JS program source file
- the specified audio file is played by the local player application, but after the staff runs online on the https webpage A, it is found that after the music play button is clicked, the https webpage A does not play the audio file, so the staff member needs to be in himself.
- the JS program source file that has problems on the https page A on the PC.
- the PC receives a replacement instruction for the audio JS file (ie, the network resource file) in the https webpage A
- the replacement instruction includes the identifier of the audio JS file: a.js, the audio JS file Access path: https://www.XX.com/XX/a.js, the ID of the resource file to be debugged locally saved by the PC: b.js and the address of the resource file to be debugged: E: ⁇ Debug work ⁇ To be debugged file ⁇ b.js.
- the calling process of the network resource file is normally: the browser in the terminal first determines the access path of the network resource file to be called by running the code of the https webpage, and then stores the network to the network.
- the server of the resource file initiates a request to invoke the network resource file (ie, initiates a call request according to an access path of the network resource file), and finally the browser receives the network resource file returned by the server and the sub-certificate provided by the server, and completes A call to the network resource file.
- the terminal needs to be pretending to store the virtual server with the debug resource file, and the domain name of the virtual server is determined, so that the browser can access the virtual server through the domain name of the virtual server for subsequent operation. Generate an access path for the resource file to be debugged.
- the process of establishing a virtual server locally in the terminal is consistent with the prior art.
- the browser in the terminal can be established locally on the terminal by using the domain name of the virtual server.
- the virtual server establishes the basis for the browser to call the resource file to be debugged saved locally.
- the PC establishes the virtual server ⁇ on the PC after receiving the replacement instruction, and determines that the domain name is: https://www.YY.com.
- S203 Replace, by the virtual server, an access path for accessing the network resource file with an access path for accessing a local resource file to be debugged.
- an access path may be generated for the resource file to be debugged, so that the browser can invoke the resource file to be debugged according to the access path of the resource file to be debugged.
- the browser accesses the path of the network resource file according to the webpage code of the https webpage, so the access path of accessing the network resource file needs to be replaced with the access path of the resource file to be debugged.
- the access path of the file to be debugged (that is, the virtual domain name of the resource file to be debugged) is generated according to the domain name of the virtual server and the address of the file to be debugged.
- the file stored in the virtual server.
- the network configuration of the terminal is modified, and the access path for accessing the network resource file is replaced with the access path for accessing the resource file to be debugged.
- the terminal receives the access, call or query request based on the access path of the network resource file sent by the browser, according to the replacement relationship of the access path, the virtual server receives the access, call, and query request, and The destination of the access, call, and query request is directed to the access path of the resource file to be debugged.
- the https webpage can be run to the greatest extent by using the real data on the line to ensure the reliability of the debugging result.
- only the access path for the network resource file can be modified as the resource file to be debugged. Access path without changing the access path of other resource files issued by the browser, so that when the browser is calling other resource files on the https webpage, the access path determined according to the https webpage is not changed, the browsing The device finally calls other resource files on the network, and when the browser invokes the network resource file, the access path determined by the browser is replaced with the resource file to be debugged locally to the terminal, and the browser invokes This is the resource file to be debugged saved locally.
- the browser can use the real data on the line to the maximum extent, so that the worker The debugger only debugs the debug resource file.
- the method for generating an access path for the resource to be debugged is the same as that of the prior art, and an access path based on the domain name of the virtual server may be generated for the resource file to be debugged, and the access path and the resource to be debugged are recorded.
- the PC is generated by the domain name https://www.YY.com of the virtual server ⁇ and the address E: ⁇ Debug work ⁇ to be debugged file ⁇ b.js of the resource file b.js to be debugged.
- the access path of the resource file b.js to be debugged is: https://www.YY.com/b.js.
- the PC replaces the access path https://www.XX.com/XX/a.js in the network configuration with https://www.YY.com/b.js.
- the virtual server a receives the call request according to the modified access path in the network configuration, and according to the access path https: //www.YY.com/b.js calls the resource file b.js to be debugged.
- step S101 the application is based on the https webpage, and for the https webpage, the transmission between the browser and the virtual server needs to be encrypted by communication, so that the virtual server is used.
- the communication between the browser and the browser can be encrypted, and a root certificate needs to be generated for the virtual server.
- the root certificate is used only as the security certificate of the virtual server in the terminal, an authoritative and highly credible security certificate (for example, a certificate authority, a certificate issued by a certificate authority) is not required.
- the browser can be spoofed so that the browser can communicate with the transmission of the virtual service device.
- the root certificate is various types of security certificates, such as domain name SSL (Domain Validation SSL, DVSSL) certificate, enterprise SSL (Organization). Validation SSL, OVSSL) certificate, Extended Validation SSL (EVSSL) certificate, and SSL (Wildcard SSL) certificate are not specifically limited in this application.
- S205 Generate a sub-certificate according to the root certificate.
- the virtual server may further generate a sub-certificate for sending to the browser according to the root certificate, so that the browser may determine, according to the sub-certificate, that the resource file to be debugged is secure.
- the browser can perform a https-based web-based communication connection with the virtual server.
- the virtual server generates a sub-certificate for sending to the browser based on the root certificate, so that the browser in the terminal initiates a call request for the network resource file according to the https webpage.
- the resource file to be debugged is determined to be secure, and the resource file to be debugged is obtained and executed.
- the virtual server generates a sub-certificate ⁇ according to the root certificate ⁇ , and when the browser B is initiating a call to https://www.XX.com/XX/a.js according to the https webpage A
- the virtual server ⁇ receives the call request initiated to https://www.YY.com/b.js, and the virtual server ⁇ returns the resource file b.js to be debugged and the sub-certificate to the browser.
- the virtual server can pass the request even if the browser requests the web resource file initiated by the browser according to the https webpage.
- the root certificate spoofs the browser, causing the browser to determine that the virtual server is a server that provides a network resource file in the https webpage, and the virtual service returns the resource file to be debugged and the sub-certificate by returning the browser to the browser.
- the to-be-debug resource file can spoof the browser through the sub-certificate, so that the browser determines that the identity of the resource file to be debugged is secure. Thereby, the replacement of the network resource file in the https webpage is implemented, and the browser can acquire and execute the local resource file to be debugged. The staff can then debug the network resource file in the https webpage where the problem occurs locally.
- the resource file to be debugged may be any file, so that the resource file to be debugged may be debugged in the subsequent application, and the network resource file may be downloaded to the to-be-debuved in the present application.
- the address of the resource file may be any file, so that the resource file to be debugged may be debugged in the subsequent application, and the network resource file may be downloaded to the to-be-debuved in the present application.
- the terminal may determine an access path of the network resource file according to the replacement instruction, and download the network resource file to the address of the to-be-decoded resource file according to the access path of the network resource file, where the resource to be debugged
- the file is no longer an arbitrary file, but has been replaced with the downloaded network resource file, so the subsequent staff can debug the resource file to be debugged locally.
- the downloading of the network resource file and the replacement of the resource file to be debugged may be performed in any step in the present application, and only the access path of the resource file to be debug generated in step S203 is replaced. The access path of the resource file to be debugged of the network resource file is sufficient.
- the embodiment of the present application further provides a call file device, as shown in FIG. 3.
- FIG. 3 is a schematic structural diagram of a device for calling a file according to an embodiment of the present application, which specifically includes:
- the receiving module 301 is configured to receive a replacement instruction of a network resource file in the https webpage;
- the executing module 302 is configured to establish a virtual server locally according to the replacement instruction
- a replacement module 303 configured to replace, by using the virtual server, an access path for accessing the network resource file to an access path for accessing a local resource file to be debugged;
- a root certificate module 304 configured to generate a root certificate for the virtual server
- a sub-certificate module 305 configured to generate a sub-certificate according to the root certificate, so that when the local browser initiates a call request for the network resource file according to the https webpage, the virtual server receives the call request And returning the to-be-debugged resource file and the sub-certificate to the browser according to the access path of the access to the local to-be-debug resource file, so that the browser acquires and executes the to-be-acquired according to the sub-certificate Debug resource files.
- the replacement instruction includes: an identifier of the network resource file, an access path of the network resource file, an identifier of the to-be-debug resource file saved in advance, and a resource file address to be debugged.
- the executing module 302 is specifically configured to establish a virtual server locally according to the replacement request, and determine a domain name of the virtual server.
- the replacement module 303 is specifically configured to: according to the domain name of the virtual server and the resource file address to be debugged, generate an access path of the to-be-debug resource, and replace the access path of the network resource file to access the local to-be-debug resource. The access path to the file.
- the device also includes:
- the downloading module 306 is configured to download the network resource file to the address of the resource file to be debugged.
- the database statement compiling device shown in FIG. 3 may be located in a terminal, and the terminal may be a mobile phone, a tablet computer or a PC.
- a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- processors CPUs
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
- RAM random access memory
- ROM read only memory
- Memory is an example of a computer readable medium.
- Computer readable media includes both permanent and non-persistent, removable and non-removable media.
- Information storage can be implemented by any method or technology.
- the information can be computer readable instructions, data structures, modules of programs, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
- computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
- embodiments of the present application can be provided as a method, system, or computer program product.
- the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
- the application can be employed in one or more of its A computer program product embodied on a computer usable storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Data Mining & Analysis (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
本申请实施例提供一种调用文件方法及装置,该方法当接收到针对https网页中网络资源文件的替换指令时,根据该替换指令,在本地建立虚拟服务器,并通过该虚拟服务器,将访问该网络资源文件的访问路径替换为访问本地的待调试资源文件的访问路径,之后为该虚拟服务器生成根证书以及子证书,使得当本地浏览器根据http网页发起对该网络资源文件的调用请求时,由该虚拟服务器接收该调用请求,并向该浏览器返回该待调试资源文件以及该子证书,使得该浏览器根据该子证书调用并执行该待调试资源文件。通过上述方法,由于为虚拟服务器生成了可向该浏览器提供根证书以及子证书,使该浏览器可正常调用该待调试资源文件。
Description
本申请涉及信息技术领域,尤其涉及一种调用文件方法及装置。
在现今的信息化社会中,网络成为人们生活和工作中不可或缺的一部分。人们在浏览网页时,一般是通过浏览器(或者,具有浏览器内核的应用)与服务器建立通信连接,以使得该浏览器可向该服务器发送获取网页页面的请求,并在获得该服务器返回的网页页面后,显示该网页页面。
由于,网页是由一组代码构成的(如,由html5代码构成),并且该网页的代码指向各类资源文件(如,JavaScript程序源文件、网页的样式文件等)也是由各自的代码构成的,但是代码都是人工编写的,所以只要是代码就可能会存在缺陷或者瑕疵。于是,在服务器向网络提供一个网页之前(即,将一个网页上线之前),一般会在离线环境中,先对该网页中的各个代码进行测试,即,进行离线测试。
但是,在离线测试时,该服务器只能使用模拟的线上数据对该网页进行测试,这就使得离线测试的结果并不一定准确,也就是说通过离线测试确定没有问题的网页,在上线后也可能出现问题。则此时,工作人员需要在服务器端调试该出现问题的资源文件的代码,但是由于服务器一般比较繁忙,在该服务器中执行该调试操作的业务可能需要排队等待,直到有空闲线程来执行该调试操作业务,所以导致每一次调试该出现问题的资源文件的代码所需要的时间较长。并且,由于通常情况下仅靠一次调试很难解决该资源文件的代码中存在的问题,需要进行多次调试,所以进一步使得调试解决问题所需的时间增加(尤其是在对存储于其他服务器中的资源文
件进行调试时,还需要浪费大量的传输时间)。基于上述原因,导致工作人员难以对网页中出现问题的资源文件进行快速、方便的调试。
于是,在现有技术中,针对网页中需要调试的资源文件,采用http代理的方法,将需要调试的资源文件映射到终端本地,以便后续可以利用真实的线上数据,对该资源文件进行调试,其中,http代理方法具体如图1所示。
图1为现有技术http代理的方法,具体包括:
S101:确定网页中需要调试的资源文件,并下载所述资源文件,作为待调试资源文件。
由于http代理方法,是希望工作人员可以在终端本地完成对该资源文件的调试,所以首先该端需要确定网页中需要调试的资源文件,再将该文件下载到该终端本地,作为待调试资源文件,以便后续可以对该待调试资源文件进行调试。
S102:建立虚拟服务器,并为该待调试资源文件确定访问路径。
该待调试资源文件需要通过本地浏览器获取。具体的,该浏览器通过运行网页中的代码,先获得该待调试资源文件的访问路径(即,该待调试资源文件的域名),再根据所述访问路径,向提供该待调试资源文件的服务器发起调用该资源文件的请求,最后获得该服务器返回的该待调试资源文件。
但是,由于工作人员希望能通过在本地直接修改该待调试资源文件,所以此时,该终端还需要伪装成为服务器,以欺骗该浏览器,让该浏览器通过运行同样的网页代码,获取本地已下载的该待调试资源文件。以实现,在该终端本地调试该待调试资源文件的目的。
具体的,该终端需要在本地建立虚拟服务器,并为存储在本地的该待
调试资源文件确定访问路径(即,该待调试资源文件的虚拟域名)。
S103:通过所述虚拟服务器,将访问原资源文件的访问路径替换为访问本地待调试资源文件的访问路径。
为了使该终端中的浏览器在通过网页代码访问该资源文件时,不再访问该资源文件的服务器,而是访问本地的虚拟服务器。此时,还需要对该终端的网络配置进行修改,以使得该终端在接收到该浏览器发起的调用该资源文件的请求时,将访问该资源文件的访问路径替换为访问本地待调试资源文件的访问路径。
使得当该浏览器向网络上的服务器发送调用该资源文件的请求时,该虚拟服务器替代该网络上的服务器接收该调用请求,并将该待调试资源文件返回给该服务器,并使该浏览器确定接收到的是网络上对应服务器返回的资源文件。
通过图1所述的方法,可将该需要调试的资源文件下载到本地后,作为待调试资源文件,在该终端本地对该待调试资源文件经行调试,并且由于该网页中代码并没有改动,所以可以充分的利用线上的真实数据进行调试。进一步的,由于该终端可仅用于调试该待调试资源文件,所以每一次调试过程无需等待可以立刻执行,提高了调试效率。
但是,图1所示的过程仅可针对网页为超文本传输协议(Hyper Text Transfer Protocol,http)的网页实现。对于网页为安全套接字层超文本传输协议(Hyper Text Transfer Protocol over Secure Socket Layer,https)的网页而言,此时浏览器与服务器间的传输需要进行通信加密,即,该浏览器需要利用安全套接字层协议(Secure Socket Layer,ssl)协议生成的安全证书来验证服务器的身份,并在接收服务器返回的资源文件时,需要验证该资源文件是否携带了对应的安全证书。
但是,由于在图1所示的过程中,该虚拟服务器没有安全证书,也无法提供安全证书,则该浏览器既无法验证该虚拟服务器的身份,也无法确定接收到该虚拟服务器返回的该待调试资源文件的安全性,那么对于https网页来说,该浏览器甚至无法调用该待调试资源文件,也就使得工作人员无法进行后续调试工作。
可见,现有技术中,由于没有安全证书,导致难以进行https网页的代理,无法调用待调试资源文件的问题。
发明内容
本申请实施例提供一种调用文件方法及装置,用以解决现有调用文件方法,采用的http代理方式,由于无法提供安全证书,导致浏览器无法调用待调试资源文件的问题。
本申请实施例提供的一种调用文件方法,包括:
接收针对https网页中网络资源文件的替换指令;
根据所述替换指令,在本地建立虚拟服务器;
通过所述虚拟服务器,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径;
为所述虚拟服务器生成根证书;
根据所述根证书,生成子证书,使得当本地浏览器根据所述https网页发起对所述网络资源文件的调用请求时,由所述虚拟服务器接收到所述调用请求,并根据替换为访问本地待调试资源文件的访问路径,向所述浏览器返回所述待调试资源文件以及所述子证书,使所述浏览器根据所述子证书,获取并执行所述待调试资源文件。
本申请实施例提供的一种调用文件装置,包括:
接收模块,用于接收https网页中网络资源文件的替换指令;
执行模块,用于根据所述替换指令,在本地建立虚拟服务器;
替换模块,用于通过所述虚拟服务器,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径;
根证书模块,用于为所述虚拟服务器生成根证书;
子证书模块,用于根据所述根证书,生成子证书,使得当本地浏览器根据所述https网页发起对所述网络资源文件的调用请求时,由所述虚拟服务器接收到所述调用请求,并根据替换为访问本地待调试资源文件的访问路径,向所述浏览器返回所述待调试资源文件以及所述子证书,使所述浏览器根据所述子证书,获取并执行所述待调试资源文件。
本申请实施例提供一种调用文件方法及装置,该方法当接收到针对https网页中网络资源文件的替换指令时,根据该替换指令,在本地建立虚拟服务器,并通过该虚拟服务器,将访问该网络资源文件的访问路径替换为访问本地的待调试资源文件的访问路径,之后为该虚拟服务器生成根证书以及子证书,使得当本地浏览器根据http网页发起对该网络资源文件的调用请求时,由该虚拟服务器接收该调用请求,并向该浏览器返回该待调试资源文件以及该子证书,最终使得该浏览器可以根据该子证书,调用并执行该待调试资源文件。通过上述方法,由于为虚拟服务器生成了根证书以及对应的子证书,使得该虚拟服务器可向该浏览器提供安全证书,使该浏览器可正常调用该待调试资源文件。
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申
请的不当限定。在附图中:
图1为现有技术http代理过程;
图2为本申请实施例提供的调用文件过程;
图3是本申请实施例提供一种调用文件装置的结构示意图。
在本申请实施例中,在接收到对https网页中的网络资源的替换指令时,该终端先根据该指令,先在该终端本地建立虚拟服务器,再通过该虚拟服务器,将该终端中访问该网络资源文件的访问路径替换为访问本地的待调试资源文件的访问路径,最后为该虚拟服务器生成根证书以及对应的子证书。可见本申请所述的方法,通过为该虚拟服务器生成根证书(即,该虚拟服务器颁发的自签证书)的方法,使得该虚拟服务器可以欺骗该浏览器,使该浏览器确定该虚拟服务器是提供https网页中网络资源文件的服务器,并且,当向该浏览器返回本地的待调试资源文件时,可以一并返回由该根证书生成的子证书,使得该浏览器确定该待调试资源文件是安全的文件,最终使得该浏览器可以调用并执行该待调试资源文件,解决了由于虚拟服务器无法提供安全证书,导致难以进行https网页的代理,无法调用待调试资源文件的问题。
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
图2为本申请实施例提供的调用文件过程,具体包括以下步骤:
S201:接收针对https网页中网络资源文件的替换指令。
由于需要在终端本地对https网页中的网络资源文件进行调试,所以在调试开始之前,需要先将本地的待调试资源文件替换为该https网页中的该网络资源文件。但是,由于此时尚未开始对该待调试资源文件的调试,所以当前的该待调试资源文件可以是任意文件,并可是仅仅拥有文件标识以及地址但是没有相应的内容的文件(即,是一个空白的文件),并不妨碍后续该待调试资源文件被调用。
于是,在本申请实施例中,该终端可接收针对https网页中的该网络资源文件的替换指令。
具体的,该替换指令可以是一行命令行,用于使该终端确定需要替换的网络资源文件以及预先保存在本地的待调试资源文件。其中,该替换指令包含:该网络资源文件的标识、该网络资源文件的访问路径、预先保存在本地的该待调试资源文件的标识及该待调试资源文件的地址。
需要说明的是,该终端可以是个人电脑(personal computer,PC)、手机、平板电脑等,该网络资源文件可以是在浏览器上运行的java脚本语言(JavaScript,JS)程序源文件、层叠样式表(Cascading Style Sheets,css)文件等可由服务器通过统一资源定位符(Uniform Resource Locator,URL)提供的文件。
例如,假设https网页A中的音乐播放按钮,在被点击后会向浏览器返回用于调用本地播放器应用播放音频文件的JS程序源文件(以下,简称音频JS文件),使该https网页A通过本地播放器应用播放指定的音频文件,但是工作人员在该https网页A上线运行后,发现该音乐播放按钮在点击后,该https网页A并没有播放音频文件,于是,该工作人员需要在自己的PC上对该https网页A中出现问题的该JS程序源文件。
进一步假设,该PC接收到了针对该https网页A中的音频JS文件(即,网络资源文件)的替换指令,并且该替换指令中包含,该音频JS文件的标识:a.js、该音频JS文件的访问路径:https://www.XX.com/XX/a.js、该PC本地预先保存的待调试资源文件的标识:b.js以及该待调试资源文件的地址:E:\调试工作\待调试文件\b.js。
S202:根据所述替换指令,在本地建立虚拟服务器。
在本申请实施例中,正常情况下该网络资源文件的调用过程是:该终端中的浏览器通过运行该https网页的代码,先确定需要调用的网络资源文件的访问路径,再向存储该网络资源文件的服务器发起调用该网络资源文件的请求(即,根据该网络资源文件的访问路径发起调用请求),最后该浏览器接收该服务器返回的该网络资源文件以及该服务器提供的子证书,完成对该网络资源文件的调用。
但是在本申请中,由于需要该浏览器能调用本地的该待调试资源文件(以便后续可以在该终端本地进行调试),所以还需要为该待调试资源文件提供一个该浏览器可以访问的访问路径。于是在本申请中,需要先将该终端伪装成存储该带调试资源文件的虚拟服务器,并确定该虚拟服务器的域名,使得该浏览器可以通过该虚拟服务器的域名访问该虚拟服务器,以便进行后续为该待调试资源文件生成访问路径。
具体的在该终端本地建立虚拟服务器的过程与现有技术一致,通过建立该虚拟服务器以及确定该虚拟服务器域名,使得该终端中的浏览器可以通过该虚拟服务器的域名访问建立在该终端本地的虚拟服务器,为该浏览器调用保存在本地的该待调试资源文件建立了基础。
继续沿用上例,假设该PC在接收到该替换指令后,在该PC上建立了虚拟服务器α,并确定其域名为:https://www.YY.com。
S203:通过所述虚拟服务器,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径。
在本申请实施例中,当建立了虚拟服务器之后,便可为该待调试资源文件生成访问路径,使该浏览器可以根据该待调试资源文件的访问路径调用该待调试资源文件。但是,此时该浏览器根据该https网页的网页代码访问的还是该网络资源文件的路径,所以还需要将访问该网络资源文件的访问路径替换为访问该待调试资源文件的访问路径。
具体的,首先根据该虚拟服务器的域名以及该待调试文件的地址,生成该待调试文件的访问路径(即,该待调试资源文件的虚拟域名),则此时可以认为该待调试资源文件是存储于该虚拟服务器中的文件。
其次,修改该终端的网络配置,将访问该网络资源文件的访问路径替换为访问该待调试资源文件的访问路径。使得当该终端接收到该浏览器发送的基于该网络资源文件的访问路径的访问、调用或查询请求时,根据上述访问路径的替换关系,使该虚拟服务器接收该访问、调用、查询请求,并且将该访问、调用、查询请求的目的地指向该待调试资源文件的访问路径。
另外,为了后续调试过程中可以最大程度上利用线上的真实数据运行该https网页,保证调试结果的可靠性,在本申请中可仅修改针对该网络资源文件的访问路径为该待调试资源文件的访问路径,而不改动该浏览器发出的针对其他资源文件访问路径,使得当该浏览器在调用该https网页上的其他资源文件时,根据该https网页确定的访问路径没有被改变,该浏览器最终调用的还是网络上的其他资源文件,而当该浏览器调用该网络资源文件时,该浏览器确定的访问路径被替换为指向该终端本地的该待调试资源文件,该浏览器调用的是本地保存的该待调试资源文件。进而使得在后续的调试过程中,该浏览器可以最大程度上使用线上的真实数据,使工作人
员仅调试该该调试资源文件。
需要说明的是,为该待调试资源生成访问路径的方法与现有技术相同,可任意为该待调试资源文件生成一个基于该虚拟服务器域名的访问路径,并记录该访问路径与该待调试资源文件的地址的对应关系,使得该虚拟服务器可以可根据该访问路径确定该待调试资源文件。
继续沿用上例,假设该PC通过该虚拟服务器α的域名https://www.YY.com以及该待调试资源文件b.js的地址E:\调试工作\待调试文件\b.js,生成所述待调试资源文件b.js的访问路径:https://www.YY.com/b.js。并且,该PC还将网络配置中访问路径https://www.XX.com/XX/a.js替换为https://www.YY.com/b.js。使得当该PC接收到终端浏览器B发出的针对该https网页A的音频JS文件的调用请求时,根据网络配置中修改的访问路径,该虚拟服务器α接收该调用请求,并根据访问路径https://www.YY.com/b.js调用该待调试资源文件b.js。
S204:为所述虚拟服务器生成根证书。
在本申请实施例中,步骤S101中已经写明,本申请是基于https网页的,而对于https网页来说,该浏览器与该虚拟服务器间的传输需要进行通信加密,于是为了使该虚拟服务器能对与该浏览器间的传输进行通信加密,还需要为该虚拟服务器生成根证书。
具体的,由于该根证书仅作为该虚拟服务器的安全证书在该终端中使用,所以无需权威的、公信力较高的安全证书(如,证书授权中心,Certificate Authority,颁发的CA证书),仅需能欺骗该浏览器,使该浏览器可以与该虚拟服务器件的传输进行通信加密即可。
需要说明的是,该根证书是各种类型的安全证书,如,域名型SSL(Domain Validation SSL,DVSSL)证书、企业型SSL(Organization
Validation SSL,OVSSL)证书、增强型SSL(Extended Validation SSL,EVSSL)证书、通配符SSL(Wildcard SSL)证书,本申请对此并不具体限定。
继续沿用上例,假设,为该虚拟服务器α生成了根证书β。
S205:根据所述根证书,生成子证书。
在本申请实施例中,当为该虚拟服务器生成了根证书之后(即,为该虚拟服务器颁发了自签证书之后),为了使该浏览器可以调用保存于该终端本地的该待调试资源文件,该虚拟服务器还可根据该根证书,生成用于发送给该浏览器的子证书,以便该浏览器可以根据该子证书确定该待调试资源文件是安全的。生成了根证书及其子证书后,该浏览器即可与该虚拟服务器进行基于https网页的通信连接。
具体的与现有技术一致,该虚拟服务器基于该根证书生成用于发送给该浏览器的子证书,使得当该终端中的该浏览器在根据该https网页发起对该网络资源文件的调用请求时,由该虚拟服务器接收到该调用请求,并根据替换为访问本地待调试资源文件的访问路径,向该浏览器返回该待调试资源文件以及该子证书,进而使该浏览器根据该子证书确定该待调试资源文件是安全的,获取并执行该待调试资源文件。
继续沿用上例,假设,该虚拟服务器根据该根证书β生成子证书γ,则当该浏览器B在根据该https网页A向https://www.XX.com/XX/a.js发起调用请求时,该虚拟服务器α接收到向https://www.YY.com/b.js发起的调用请求,则该虚拟服务器α向该浏览器返回该待调试资源文件b.js以及该子证书γ,使得该浏览器B在接收到该待调试资源文件b.js以及该子证书γ后,根据该子证书γ确定该待调试资源文件b.js安全可用,获取并执行该待调试资源文件b.js。
通过如图2所示的调用文件方法,可见,由于为该虚拟服务器生成了根证书以及子证书,所以即使对于浏览器根据https网页发起的网络资源文件的调用请求,该虚拟服务器也可通过该根证书欺骗该浏览器,使该浏览器确定该虚拟服务器是提供该https网页中的网络资源文件的服务器,并且,该虚拟服务通过向该浏览器返回该待调试资源文件以及该子证书,使得该待调试资源文件可以通过该子证书欺骗该浏览器,让该浏览器确定该待调试资源文件的身份是安全的。从而实现https网页中的网络资源文件的替换,并使该浏览器可以获取、执行本地的待调试资源文件。使得工作人员后续可以在终端本地对出现问题的https网页中的网络资源文件进行调试。
另外,如在步骤S201中所述的,该待调试资源文件可以是任意文件,于是,为了后续可以对该待调试资源文件进行调试,在本申请中还可以下载该网络资源文件至该待调试资源文件的地址。
具体的,该终端可根据该替换指令,确定该网络资源文件的访问路径,并根据该网络资源文件的访问路径下载该网络资源文件至该待调试资源文件的地址,则此时该待调试资源文件不再是任意文件,而已经被替换为已下载的该网络资源文件,于是后续工作人员可以在本地对该待调试资源文件进行调试。
需要说明的是,该网络资源文件的下载以及该待调试资源文件的替换可以在本申请中任一步骤中进行,仅需要保证在步骤S203中生成的该待调试资源文件的访问路径为已替换为网络资源文件的该待调试资源文件的访问路径即可。
基于图2所示的调用文件过程,本申请实施例还提供一种调用文件装置,如图3所示。
图3是本申请实施例提供一种调用文件装置的结构示意图,具体包括:
接收模块301,用于接收https网页中网络资源文件的替换指令;
执行模块302,用于根据所述替换指令,在本地建立虚拟服务器;
替换模块303,用于通过所述虚拟服务器,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径;
根证书模块304,用于为所述虚拟服务器生成根证书;
子证书模块305,用于根据所述根证书,生成子证书,使得当本地浏览器根据所述https网页发起对所述网络资源文件的调用请求时,由所述虚拟服务器接收到所述调用请求,并根据替换为访问本地待调试资源文件的访问路径,向所述浏览器返回所述待调试资源文件以及所述子证书,使所述浏览器根据所述子证书,获取并执行所述待调试资源文件。
所述替换指令包含:所述网络资源文件的标识、所述网络资源文件的访问路径、预先保存在本地的所述待调试资源文件的标识及所述待调试资源文件地址。
执行模块302具体用于,根据所述替换请求,在本地建立虚拟服务器,并确定所述虚拟服务器的域名。
替换模块303具体用于,根据所述虚拟服务器的域名以及所述待调试资源文件地址,生成所述待调试资源的访问路径,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径。
所述装置还包括:
下载模块306,用于下载所述网络资源文件至所述待调试资源文件的地址。
具体的,上述如图3所示的数据库语句编译装置可以位于终端中,该终端可以是手机、平板电脑或者PC。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其
中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。
Claims (10)
- 一种调用文件方法,其特征在于,所述方法包括:接收针对安全套接字层超文本传输协议https网页中网络资源文件的替换指令;根据所述替换指令,在本地建立虚拟服务器;通过所述虚拟服务器,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径;为所述虚拟服务器生成根证书;根据所述根证书,生成子证书,使得当本地浏览器根据所述https网页发起对所述网络资源文件的调用请求时,由所述虚拟服务器接收到所述调用请求,并根据替换为访问本地待调试资源文件的访问路径,向所述浏览器返回所述待调试资源文件以及所述子证书,使所述浏览器根据所述子证书,获取并执行所述待调试资源文件。
- 如权利要求1所述的方法,其特征在于,所述替换指令包含:所述网络资源文件的标识、所述网络资源文件的访问路径、预先保存在本地的所述待调试资源文件的标识及所述待调试资源文件地址。
- 如权利要求2所述的方法,其特征在于,根据所述替换指令,在本地建立虚拟服务器,具体包括:根据所述替换请求,在本地建立虚拟服务器,并确定所述虚拟服务器的域名。
- 如权利要求3所述的方法,其特征在于,通过所述虚拟服务器, 将访问网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径,具体包括:根据所述虚拟服务器的域名以及所述待调试资源文件地址,生成所述待调试资源的访问路径;将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径。
- 如权利要求2所述的方法,其特征在于,所述方法还包括:下载所述网络资源文件至所述待调试资源文件的地址。
- 一种调用文件的装置,其特征在于,包括:接收模块,用于接收安全套接字层超文本传输协议https网页中网络资源文件的替换指令;执行模块,用于根据所述替换指令,在本地建立虚拟服务器;替换模块,用于通过所述虚拟服务器,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径;根证书模块,用于为所述虚拟服务器生成根证书;子证书模块,用于根据所述根证书,生成子证书,使得当本地浏览器根据所述https网页发起对所述网络资源文件的调用请求时,由所述虚拟服务器接收到所述调用请求,并根据替换为访问本地待调试资源文件的访问路径,向所述浏览器返回所述待调试资源文件以及所述子证书,使所述浏览器根据所述子证书,获取并执行所述待调试资源文件。
- 如权利要求6所述的装置,其特征在于,所述替换指令包含:所 述网络资源文件的标识、所述网络资源文件的访问路径、预先保存在本地的所述待调试资源文件的标识及所述待调试资源文件地址。
- 如权利要求7所述的装置,其特征在于,执行模块具体用于,根据所述替换请求,在本地建立虚拟服务器,并确定所述虚拟服务器的域名。
- 如权利要求8所述的装置,其特征在于,替换模块具体用于,根据所述虚拟服务器的域名以及所述待调试资源文件地址,生成所述待调试资源的访问路径,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径。
- 如权利要求7所述的装置,其特征在于,所述装置还包括:下载模块,用于下载所述网络资源文件至所述待调试资源文件的地址。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610189253.7A CN107239475B (zh) | 2016-03-29 | 2016-03-29 | 一种调用文件方法及装置 |
| CN201610189253.7 | 2016-03-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017167051A1 true WO2017167051A1 (zh) | 2017-10-05 |
Family
ID=59963470
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/077273 Ceased WO2017167051A1 (zh) | 2016-03-29 | 2017-03-20 | 一种调用文件方法及装置 |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN107239475B (zh) |
| TW (1) | TWI672019B (zh) |
| WO (1) | WO2017167051A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113507529A (zh) * | 2021-07-26 | 2021-10-15 | 上海中通吉网络技术有限公司 | 基于Web应用实现文件下载的方法 |
| CN117749672A (zh) * | 2023-12-08 | 2024-03-22 | 中化现代农业有限公司 | 数据包抓取方法及数据包传输方法 |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110768940B (zh) * | 2018-07-27 | 2022-03-22 | 深信服科技股份有限公司 | 基于https协议密文数据管控方法、系统、代理服务器及存储介质 |
| CN109508437B (zh) * | 2018-11-21 | 2021-05-04 | 深信服科技股份有限公司 | 一种搜索网站审计方法、系统及网关设备和存储介质 |
| CN116527631A (zh) * | 2023-05-08 | 2023-08-01 | 上海微盟企业发展有限公司 | 一种本地调试功能配置方法、装置、设备及可读存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7509490B1 (en) * | 2000-05-26 | 2009-03-24 | Symantec Corporation | Method and apparatus for encrypted communications to a secure server |
| CN102916958A (zh) * | 2012-10-15 | 2013-02-06 | 福建榕基软件股份有限公司 | 一种实现移动终端浏览器访问加密方法及系统 |
| JP2014229182A (ja) * | 2013-05-24 | 2014-12-08 | 日本電信電話株式会社 | Web閲覧履歴取得装置、方法、およびプログラム |
| US20150373013A1 (en) * | 2014-06-20 | 2015-12-24 | Adobe Systems Incorporated | Method and apparatus for verifying an application to authorize content repository access using ssl certificates |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7370351B1 (en) * | 2001-03-22 | 2008-05-06 | Novell, Inc. | Cross domain authentication and security services using proxies for HTTP access |
| US8386785B2 (en) * | 2008-06-18 | 2013-02-26 | Igt | Gaming machine certificate creation and management |
| CN102214224A (zh) * | 2011-06-15 | 2011-10-12 | 中兴通讯股份有限公司 | 一种访问网络资源的优化方法、网页浏览器和终端 |
| CN103065078A (zh) * | 2013-01-04 | 2013-04-24 | 无锡矽鼎科技有限公司 | 安卓系统用openssl引擎加载客户端证书的方法 |
| CN104539682A (zh) * | 2014-12-19 | 2015-04-22 | 乐视网信息技术(北京)股份有限公司 | 移动网页的调试方法、装置、移动终端、服务器以及系统 |
| CN105404504B (zh) * | 2015-11-02 | 2018-12-25 | 北京锐安科技有限公司 | 一种Web组件的调试方法及装置 |
-
2016
- 2016-03-29 CN CN201610189253.7A patent/CN107239475B/zh not_active Expired - Fee Related
-
2017
- 2017-01-20 TW TW106102210A patent/TWI672019B/zh active
- 2017-03-20 WO PCT/CN2017/077273 patent/WO2017167051A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7509490B1 (en) * | 2000-05-26 | 2009-03-24 | Symantec Corporation | Method and apparatus for encrypted communications to a secure server |
| CN102916958A (zh) * | 2012-10-15 | 2013-02-06 | 福建榕基软件股份有限公司 | 一种实现移动终端浏览器访问加密方法及系统 |
| JP2014229182A (ja) * | 2013-05-24 | 2014-12-08 | 日本電信電話株式会社 | Web閲覧履歴取得装置、方法、およびプログラム |
| US20150373013A1 (en) * | 2014-06-20 | 2015-12-24 | Adobe Systems Incorporated | Method and apparatus for verifying an application to authorize content repository access using ssl certificates |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113507529A (zh) * | 2021-07-26 | 2021-10-15 | 上海中通吉网络技术有限公司 | 基于Web应用实现文件下载的方法 |
| CN117749672A (zh) * | 2023-12-08 | 2024-03-22 | 中化现代农业有限公司 | 数据包抓取方法及数据包传输方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107239475B (zh) | 2020-09-18 |
| TWI672019B (zh) | 2019-09-11 |
| CN107239475A (zh) | 2017-10-10 |
| TW201735583A (zh) | 2017-10-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI687113B (zh) | 確定登錄網站的終端是否爲移動終端的方法及伺服器 | |
| TWI608416B (zh) | Page return method and apparatus, page generation method and apparatus | |
| TWI672019B (zh) | 調用文件之方法與裝置 | |
| CN104423961B (zh) | 一种生成测试脚本的方法及系统 | |
| CN106897053B (zh) | 一种代码发布方法与装置 | |
| WO2017045563A1 (zh) | 一种web app访问方法、装置和系统 | |
| JP2020505681A (ja) | データ取得方法およびデバイス | |
| US10565090B1 (en) | Proxy for debugging transformed code | |
| CN110782374A (zh) | 基于区块链的电子取证方法及系统 | |
| TW201732657A (zh) | 業務執行方法及裝置 | |
| CN107807937A (zh) | 一种网站seo处理方法、装置及系统 | |
| CN103838558A (zh) | 网站建站系统及方法、访问网站的方法及网页适配系统 | |
| CN109936605A (zh) | 一种加载接口数据的方法和装置 | |
| CN113434384B (zh) | 一种压力测试方法和装置 | |
| TWI677223B (zh) | 頁面顯示的方法及裝置 | |
| CN111259283A (zh) | 一种页面资源预加载的处理方法及装置,电子和存储设备 | |
| CN102662838B (zh) | 一种浏览器中Flash的调试方法及系统 | |
| CN110019363A (zh) | 一种校验数据的方法和装置 | |
| CN111885063B (zh) | 开源系统访问管控方法、装置、设备及存储介质 | |
| CN111309432A (zh) | 一种故障演练方法、装置及系统 | |
| CN118337783B (zh) | 分布式系统的功能验证方法、装置、设备、存储介质和程序产品 | |
| CN111752593A (zh) | 动态获取浏览器代理地址方法、装置、设备及存储介质 | |
| CN112380469A (zh) | 一种页面显示方法、装置、系统、电子设备及存储介质 | |
| CN104378453A (zh) | 一种用于url重定向的方法和装置 | |
| CN111338928A (zh) | 基于chrome浏览器测试的方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17773081 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17773081 Country of ref document: EP Kind code of ref document: A1 |