WO2017167051A1 - File calling method and apparatus - Google Patents

File calling method and apparatus Download PDF

Info

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
Application number
PCT/CN2017/077273
Other languages
French (fr)
Chinese (zh)
Inventor
辜志豪
Original Assignee
阿里巴巴集团控股有限公司
辜志豪
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 阿里巴巴集团控股有限公司, 辜志豪 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2017167051A1 publication Critical patent/WO2017167051A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program 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)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Embodiments of the application provide a file calling method and apparatus. The method comprises: when a replacement instruction for a network resource file on an HTTPS webpage is received, establishing a virtual server locally according to the replacement instruction; replacing, via 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; and then generating a root certificate and a child certificate for the virtual server, so that when a local browser initiates a calling request for the network resource file according to the https webpage, the virtual server receives the calling request, and returns the resource file to be debugged and the child certificate to the browser, and the browser calls and executes, according to the child certificate, the resource file to be debugged. According to the method of the invention, a virtual server can generate root certificates and child certificates for provision to a browser, such that the browser can call resource files for debugging in a normal way.

Description

一种调用文件方法及装置Method and device for calling file 技术领域Technical field
本申请涉及信息技术领域,尤其涉及一种调用文件方法及装置。The present application relates to the field of information technology, and in particular, to a method and an apparatus for calling a file.
背景技术Background technique
在现今的信息化社会中,网络成为人们生活和工作中不可或缺的一部分。人们在浏览网页时,一般是通过浏览器(或者,具有浏览器内核的应用)与服务器建立通信连接,以使得该浏览器可向该服务器发送获取网页页面的请求,并在获得该服务器返回的网页页面后,显示该网页页面。In today's information society, the Internet has become an indispensable part of people's lives and work. 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.
由于,网页是由一组代码构成的(如,由html5代码构成),并且该网页的代码指向各类资源文件(如,JavaScript程序源文件、网页的样式文件等)也是由各自的代码构成的,但是代码都是人工编写的,所以只要是代码就可能会存在缺陷或者瑕疵。于是,在服务器向网络提供一个网页之前(即,将一个网页上线之前),一般会在离线环境中,先对该网页中的各个代码进行测试,即,进行离线测试。Because 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.
但是,在离线测试时,该服务器只能使用模拟的线上数据对该网页进行测试,这就使得离线测试的结果并不一定准确,也就是说通过离线测试确定没有问题的网页,在上线后也可能出现问题。则此时,工作人员需要在服务器端调试该出现问题的资源文件的代码,但是由于服务器一般比较繁忙,在该服务器中执行该调试操作的业务可能需要排队等待,直到有空闲线程来执行该调试操作业务,所以导致每一次调试该出现问题的资源文件的代码所需要的时间较长。并且,由于通常情况下仅靠一次调试很难解决该资源文件的代码中存在的问题,需要进行多次调试,所以进一步使得调试解决问题所需的时间增加(尤其是在对存储于其他服务器中的资源文 件进行调试时,还需要浪费大量的传输时间)。基于上述原因,导致工作人员难以对网页中出现问题的资源文件进行快速、方便的调试。However, in offline testing, 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. At this point, 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. Moreover, since it is often difficult to solve the problem in the code of the resource file by one debugging, and multiple debugging is required, the time required for debugging to solve the problem is further increased (especially when it is stored in other servers). Resource text When debugging, you also need to waste a lot of transfer time). For the above reasons, it is difficult for the staff to quickly and conveniently debug the resource files that have problems in the webpage.
于是,在现有技术中,针对网页中需要调试的资源文件,采用http代理的方法,将需要调试的资源文件映射到终端本地,以便后续可以利用真实的线上数据,对该资源文件进行调试,其中,http代理方法具体如图1所示。Therefore, in the prior art, for the resource file that needs to be debugged in the webpage, 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. , wherein the http proxy method is specifically as shown in FIG. 1 .
图1为现有技术http代理的方法,具体包括:FIG. 1 is a method of a prior art http proxy, specifically including:
S101:确定网页中需要调试的资源文件,并下载所述资源文件,作为待调试资源文件。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.
由于http代理方法,是希望工作人员可以在终端本地完成对该资源文件的调试,所以首先该端需要确定网页中需要调试的资源文件,再将该文件下载到该终端本地,作为待调试资源文件,以便后续可以对该待调试资源文件进行调试。Because of the http proxy method, it is hoped that the staff can complete the debugging of the resource file locally in the terminal. Therefore, 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:建立虚拟服务器,并为该待调试资源文件确定访问路径。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.
但是,由于工作人员希望能通过在本地直接修改该待调试资源文件,所以此时,该终端还需要伪装成为服务器,以欺骗该浏览器,让该浏览器通过运行同样的网页代码,获取本地已下载的该待调试资源文件。以实现,在该终端本地调试该待调试资源文件的目的。However, 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.
具体的,该终端需要在本地建立虚拟服务器,并为存储在本地的该待 调试资源文件确定访问路径(即,该待调试资源文件的虚拟域名)。Specifically, 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).
S103:通过所述虚拟服务器,将访问原资源文件的访问路径替换为访问本地待调试资源文件的访问路径。S103: Replace, by using the virtual server, an access path for accessing the original resource file to an access path for accessing the local resource file to be debugged.
为了使该终端中的浏览器在通过网页代码访问该资源文件时,不再访问该资源文件的服务器,而是访问本地的虚拟服务器。此时,还需要对该终端的网络配置进行修改,以使得该终端在接收到该浏览器发起的调用该资源文件的请求时,将访问该资源文件的访问路径替换为访问本地待调试资源文件的访问路径。In order to enable the browser in the terminal to access the resource file through the webpage code, the server of the resource file is no longer accessed, but the local virtual server is accessed. At this time, 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.
使得当该浏览器向网络上的服务器发送调用该资源文件的请求时,该虚拟服务器替代该网络上的服务器接收该调用请求,并将该待调试资源文件返回给该服务器,并使该浏览器确定接收到的是网络上对应服务器返回的资源文件。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.
通过图1所述的方法,可将该需要调试的资源文件下载到本地后,作为待调试资源文件,在该终端本地对该待调试资源文件经行调试,并且由于该网页中代码并没有改动,所以可以充分的利用线上的真实数据进行调试。进一步的,由于该终端可仅用于调试该待调试资源文件,所以每一次调试过程无需等待可以立刻执行,提高了调试效率。After 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.
但是,图1所示的过程仅可针对网页为超文本传输协议(Hyper Text Transfer Protocol,http)的网页实现。对于网页为安全套接字层超文本传输协议(Hyper Text Transfer Protocol over Secure Socket Layer,https)的网页而言,此时浏览器与服务器间的传输需要进行通信加密,即,该浏览器需要利用安全套接字层协议(Secure Socket Layer,ssl)协议生成的安全证书来验证服务器的身份,并在接收服务器返回的资源文件时,需要验证该资源文件是否携带了对应的安全证书。 However, the process shown in FIG. 1 can only be implemented for a web page whose web page is a Hyper Text Transfer Protocol (http). For a webpage whose webpage is a Hyper Text Transfer Protocol over Secure Socket Layer (https), 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. When receiving the resource file returned by the server, it is required to verify whether the resource file carries the corresponding security certificate.
但是,由于在图1所示的过程中,该虚拟服务器没有安全证书,也无法提供安全证书,则该浏览器既无法验证该虚拟服务器的身份,也无法确定接收到该虚拟服务器返回的该待调试资源文件的安全性,那么对于https网页来说,该浏览器甚至无法调用该待调试资源文件,也就使得工作人员无法进行后续调试工作。However, since the virtual server does not have a security certificate and cannot provide a security certificate in the process shown in FIG. 1, 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.
可见,现有技术中,由于没有安全证书,导致难以进行https网页的代理,无法调用待调试资源文件的问题。It can be seen that in the prior art, since there is no security certificate, it is difficult to perform proxying of the https webpage, and the problem of the resource file to be debugged cannot be called.
发明内容Summary of the invention
本申请实施例提供一种调用文件方法及装置,用以解决现有调用文件方法,采用的http代理方式,由于无法提供安全证书,导致浏览器无法调用待调试资源文件的问题。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 method for calling a file provided by an embodiment of the present application includes:
接收针对https网页中网络资源文件的替换指令;Receiving a replacement instruction for a network resource file in a https webpage;
根据所述替换指令,在本地建立虚拟服务器;Establishing a virtual server locally according to the replacement instruction;
通过所述虚拟服务器,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径;Replacing an access path for accessing the network resource file with an access path for accessing a local resource file to be debugged by using the virtual server;
为所述虚拟服务器生成根证书;Generating a root certificate for the virtual server;
根据所述根证书,生成子证书,使得当本地浏览器根据所述https网页发起对所述网络资源文件的调用请求时,由所述虚拟服务器接收到所述调用请求,并根据替换为访问本地待调试资源文件的访问路径,向所述浏览器返回所述待调试资源文件以及所述子证书,使所述浏览器根据所述子证书,获取并执行所述待调试资源文件。Generating 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 according to the replacement, accesses the local The access path of the resource file to be debugged is returned to the browser, and the resource file to be debugged and the sub-certificate are returned to the browser, so that the browser acquires and executes the resource file to be debugged according to the sub-certificate.
本申请实施例提供的一种调用文件装置,包括: A calling file device provided by an embodiment of the present application includes:
接收模块,用于接收https网页中网络资源文件的替换指令;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;
子证书模块,用于根据所述根证书,生成子证书,使得当本地浏览器根据所述https网页发起对所述网络资源文件的调用请求时,由所述虚拟服务器接收到所述调用请求,并根据替换为访问本地待调试资源文件的访问路径,向所述浏览器返回所述待调试资源文件以及所述子证书,使所述浏览器根据所述子证书,获取并执行所述待调试资源文件。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.
本申请实施例提供一种调用文件方法及装置,该方法当接收到针对https网页中网络资源文件的替换指令时,根据该替换指令,在本地建立虚拟服务器,并通过该虚拟服务器,将访问该网络资源文件的访问路径替换为访问本地的待调试资源文件的访问路径,之后为该虚拟服务器生成根证书以及子证书,使得当本地浏览器根据http网页发起对该网络资源文件的调用请求时,由该虚拟服务器接收该调用请求,并向该浏览器返回该待调试资源文件以及该子证书,最终使得该浏览器可以根据该子证书,调用并执行该待调试资源文件。通过上述方法,由于为虚拟服务器生成了根证书以及对应的子证书,使得该虚拟服务器可向该浏览器提供安全证书,使该浏览器可正常调用该待调试资源文件。An embodiment of the present application provides a method and an apparatus for calling a file. 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. Through the above method, 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.
附图说明DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申 请的不当限定。在附图中:The drawings described herein are provided to provide a further understanding of the present application and constitute a part of this application. The illustrative embodiments of the present application and the description thereof are used to explain the present application and do not constitute a Please improperly limit. In the drawing:
图1为现有技术http代理过程;Figure 1 is a prior art http proxy process;
图2为本申请实施例提供的调用文件过程;2 is a process of calling a file provided by an embodiment of the present application;
图3是本申请实施例提供一种调用文件装置的结构示意图。FIG. 3 is a schematic structural diagram of a device for calling a file according to an embodiment of the present application.
具体实施方式detailed description
在本申请实施例中,在接收到对https网页中的网络资源的替换指令时,该终端先根据该指令,先在该终端本地建立虚拟服务器,再通过该虚拟服务器,将该终端中访问该网络资源文件的访问路径替换为访问本地的待调试资源文件的访问路径,最后为该虚拟服务器生成根证书以及对应的子证书。可见本申请所述的方法,通过为该虚拟服务器生成根证书(即,该虚拟服务器颁发的自签证书)的方法,使得该虚拟服务器可以欺骗该浏览器,使该浏览器确定该虚拟服务器是提供https网页中网络资源文件的服务器,并且,当向该浏览器返回本地的待调试资源文件时,可以一并返回由该根证书生成的子证书,使得该浏览器确定该待调试资源文件是安全的文件,最终使得该浏览器可以调用并执行该待调试资源文件,解决了由于虚拟服务器无法提供安全证书,导致难以进行https网页的代理,无法调用待调试资源文件的问题。In the embodiment of the present application, 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. It can be seen that 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.
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the present application will be clearly and completely described in the following with reference to the specific embodiments of the present application and the corresponding drawings. It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
图2为本申请实施例提供的调用文件过程,具体包括以下步骤: FIG. 2 is a process for invoking a file according to an embodiment of the present disclosure, which specifically includes the following steps:
S201:接收针对https网页中网络资源文件的替换指令。S201: Receive a replacement instruction for a network resource file in the https webpage.
由于需要在终端本地对https网页中的网络资源文件进行调试,所以在调试开始之前,需要先将本地的待调试资源文件替换为该https网页中的该网络资源文件。但是,由于此时尚未开始对该待调试资源文件的调试,所以当前的该待调试资源文件可以是任意文件,并可是仅仅拥有文件标识以及地址但是没有相应的内容的文件(即,是一个空白的文件),并不妨碍后续该待调试资源文件被调用。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. However, since the debugging of the resource file to be debugged has not been started at this time, 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.
于是,在本申请实施例中,该终端可接收针对https网页中的该网络资源文件的替换指令。Therefore, in the embodiment of the present application, the terminal may receive a replacement instruction for the network resource file in the https webpage.
具体的,该替换指令可以是一行命令行,用于使该终端确定需要替换的网络资源文件以及预先保存在本地的待调试资源文件。其中,该替换指令包含:该网络资源文件的标识、该网络资源文件的访问路径、预先保存在本地的该待调试资源文件的标识及该待调试资源文件的地址。Specifically, 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.
需要说明的是,该终端可以是个人电脑(personal computer,PC)、手机、平板电脑等,该网络资源文件可以是在浏览器上运行的java脚本语言(JavaScript,JS)程序源文件、层叠样式表(Cascading Style Sheets,css)文件等可由服务器通过统一资源定位符(Uniform Resource Locator,URL)提供的文件。It should be noted that the terminal may be a personal computer (PC), a mobile phone, a tablet computer, etc., and the network resource file may be a java script language (JavaScript, JS) program source file running on a browser, and a cascading style. A Cascading Style Sheets (css) file or the like can be provided by a server through a Uniform Resource Locator (URL).
例如,假设https网页A中的音乐播放按钮,在被点击后会向浏览器返回用于调用本地播放器应用播放音频文件的JS程序源文件(以下,简称音频JS文件),使该https网页A通过本地播放器应用播放指定的音频文件,但是工作人员在该https网页A上线运行后,发现该音乐播放按钮在点击后,该https网页A并没有播放音频文件,于是,该工作人员需要在自己的PC上对该https网页A中出现问题的该JS程序源文件。 For example, suppose that 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 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.
进一步假设,该PC接收到了针对该https网页A中的音频JS文件(即,网络资源文件)的替换指令,并且该替换指令中包含,该音频JS文件的标识:a.js、该音频JS文件的访问路径:https://www.XX.com/XX/a.js、该PC本地预先保存的待调试资源文件的标识:b.js以及该待调试资源文件的地址:E:\调试工作\待调试文件\b.js。Further suppose that the PC receives a replacement instruction for the audio JS file (ie, the network resource file) in the https webpage A, and 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.
S202:根据所述替换指令,在本地建立虚拟服务器。S202: Establish a virtual server locally according to the replacement instruction.
在本申请实施例中,正常情况下该网络资源文件的调用过程是:该终端中的浏览器通过运行该https网页的代码,先确定需要调用的网络资源文件的访问路径,再向存储该网络资源文件的服务器发起调用该网络资源文件的请求(即,根据该网络资源文件的访问路径发起调用请求),最后该浏览器接收该服务器返回的该网络资源文件以及该服务器提供的子证书,完成对该网络资源文件的调用。In the embodiment of the present application, 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.
但是在本申请中,由于需要该浏览器能调用本地的该待调试资源文件(以便后续可以在该终端本地进行调试),所以还需要为该待调试资源文件提供一个该浏览器可以访问的访问路径。于是在本申请中,需要先将该终端伪装成存储该带调试资源文件的虚拟服务器,并确定该虚拟服务器的域名,使得该浏览器可以通过该虚拟服务器的域名访问该虚拟服务器,以便进行后续为该待调试资源文件生成访问路径。However, in the present application, since the browser needs to call the local resource file to be debugged (so that it can be debugged locally on the terminal), it is also necessary to provide the browser resource to be debugged with access accessible by the browser. path. Therefore, in the present application, 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.
具体的在该终端本地建立虚拟服务器的过程与现有技术一致,通过建立该虚拟服务器以及确定该虚拟服务器域名,使得该终端中的浏览器可以通过该虚拟服务器的域名访问建立在该终端本地的虚拟服务器,为该浏览器调用保存在本地的该待调试资源文件建立了基础。Specifically, the process of establishing a virtual server locally in the terminal is consistent with the prior art. By establishing the virtual server and determining the domain name of the virtual server, 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.
继续沿用上例,假设该PC在接收到该替换指令后,在该PC上建立了虚拟服务器α,并确定其域名为:https://www.YY.com。 Continuing with the above example, it is assumed that 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:通过所述虚拟服务器,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径。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.
在本申请实施例中,当建立了虚拟服务器之后,便可为该待调试资源文件生成访问路径,使该浏览器可以根据该待调试资源文件的访问路径调用该待调试资源文件。但是,此时该浏览器根据该https网页的网页代码访问的还是该网络资源文件的路径,所以还需要将访问该网络资源文件的访问路径替换为访问该待调试资源文件的访问路径。In the embodiment of the present application, after the virtual server is established, 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. However, at this time, 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.
具体的,首先根据该虚拟服务器的域名以及该待调试文件的地址,生成该待调试文件的访问路径(即,该待调试资源文件的虚拟域名),则此时可以认为该待调试资源文件是存储于该虚拟服务器中的文件。Specifically, 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.
其次,修改该终端的网络配置,将访问该网络资源文件的访问路径替换为访问该待调试资源文件的访问路径。使得当该终端接收到该浏览器发送的基于该网络资源文件的访问路径的访问、调用或查询请求时,根据上述访问路径的替换关系,使该虚拟服务器接收该访问、调用、查询请求,并且将该访问、调用、查询请求的目的地指向该待调试资源文件的访问路径。Secondly, 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. When 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.
另外,为了后续调试过程中可以最大程度上利用线上的真实数据运行该https网页,保证调试结果的可靠性,在本申请中可仅修改针对该网络资源文件的访问路径为该待调试资源文件的访问路径,而不改动该浏览器发出的针对其他资源文件访问路径,使得当该浏览器在调用该https网页上的其他资源文件时,根据该https网页确定的访问路径没有被改变,该浏览器最终调用的还是网络上的其他资源文件,而当该浏览器调用该网络资源文件时,该浏览器确定的访问路径被替换为指向该终端本地的该待调试资源文件,该浏览器调用的是本地保存的该待调试资源文件。进而使得在后续的调试过程中,该浏览器可以最大程度上使用线上的真实数据,使工作人 员仅调试该该调试资源文件。In addition, in the subsequent debugging process, 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. In the present application, 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. In addition, in the subsequent debugging process, 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.
需要说明的是,为该待调试资源生成访问路径的方法与现有技术相同,可任意为该待调试资源文件生成一个基于该虚拟服务器域名的访问路径,并记录该访问路径与该待调试资源文件的地址的对应关系,使得该虚拟服务器可以可根据该访问路径确定该待调试资源文件。It should be noted that 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 correspondence between the addresses of the files, so that the virtual server can determine the resource file to be debugged according to the access path.
继续沿用上例,假设该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。Continue to use the above example, assuming that 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. Also, the PC replaces the access path https://www.XX.com/XX/a.js in the network configuration with https://www.YY.com/b.js. When the PC receives the call request from the terminal browser B for the audio JS file of the https webpage A, 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.
S204:为所述虚拟服务器生成根证书。S204: Generate a root certificate for the virtual server.
在本申请实施例中,步骤S101中已经写明,本申请是基于https网页的,而对于https网页来说,该浏览器与该虚拟服务器间的传输需要进行通信加密,于是为了使该虚拟服务器能对与该浏览器间的传输进行通信加密,还需要为该虚拟服务器生成根证书。In the embodiment of the present application, it has been stated in step S101 that 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.
具体的,由于该根证书仅作为该虚拟服务器的安全证书在该终端中使用,所以无需权威的、公信力较高的安全证书(如,证书授权中心,Certificate Authority,颁发的CA证书),仅需能欺骗该浏览器,使该浏览器可以与该虚拟服务器件的传输进行通信加密即可。Specifically, since 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.
需要说明的是,该根证书是各种类型的安全证书,如,域名型SSL(Domain Validation SSL,DVSSL)证书、企业型SSL(Organization  Validation SSL,OVSSL)证书、增强型SSL(Extended Validation SSL,EVSSL)证书、通配符SSL(Wildcard SSL)证书,本申请对此并不具体限定。It should be noted that 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.
继续沿用上例,假设,为该虚拟服务器α生成了根证书β。Continuing with the above example, assume that a root certificate β is generated for the virtual server α.
S205:根据所述根证书,生成子证书。S205: Generate a sub-certificate according to the root certificate.
在本申请实施例中,当为该虚拟服务器生成了根证书之后(即,为该虚拟服务器颁发了自签证书之后),为了使该浏览器可以调用保存于该终端本地的该待调试资源文件,该虚拟服务器还可根据该根证书,生成用于发送给该浏览器的子证书,以便该浏览器可以根据该子证书确定该待调试资源文件是安全的。生成了根证书及其子证书后,该浏览器即可与该虚拟服务器进行基于https网页的通信连接。In the embodiment of the present application, after the root certificate is generated for the virtual server (that is, after the self-signed certificate is issued for the virtual server), in order to enable the browser to call the to-be-debug resource file saved locally in the terminal. 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. After the root certificate and its sub-certificates are generated, the browser can perform a https-based web-based communication connection with the virtual server.
具体的与现有技术一致,该虚拟服务器基于该根证书生成用于发送给该浏览器的子证书,使得当该终端中的该浏览器在根据该https网页发起对该网络资源文件的调用请求时,由该虚拟服务器接收到该调用请求,并根据替换为访问本地待调试资源文件的访问路径,向该浏览器返回该待调试资源文件以及该子证书,进而使该浏览器根据该子证书确定该待调试资源文件是安全的,获取并执行该待调试资源文件。Specifically, in accordance with the prior art, 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. Receiving the call request by the virtual server, 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-decoded resource file, so that the browser is based on the sub-certificate The resource file to be debugged is determined to be secure, and the resource file to be debugged is obtained and executed.
继续沿用上例,假设,该虚拟服务器根据该根证书β生成子证书γ,则当该浏览器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。 Continuing with the above example, assume that 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 When requested, 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. γ, after the browser B receives the to-be-debugged resource file b.js and the sub-certificate γ, determines that the to-be-debuved resource file b.js is safely available according to the sub-certificate γ, and acquires and executes the to-be-debuved resource file. B.js.
通过如图2所示的调用文件方法,可见,由于为该虚拟服务器生成了根证书以及子证书,所以即使对于浏览器根据https网页发起的网络资源文件的调用请求,该虚拟服务器也可通过该根证书欺骗该浏览器,使该浏览器确定该虚拟服务器是提供该https网页中的网络资源文件的服务器,并且,该虚拟服务通过向该浏览器返回该待调试资源文件以及该子证书,使得该待调试资源文件可以通过该子证书欺骗该浏览器,让该浏览器确定该待调试资源文件的身份是安全的。从而实现https网页中的网络资源文件的替换,并使该浏览器可以获取、执行本地的待调试资源文件。使得工作人员后续可以在终端本地对出现问题的https网页中的网络资源文件进行调试。Through the call file method shown in FIG. 2, it can be seen that since the root certificate and the sub-certificate are generated for the virtual server, 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.
另外,如在步骤S201中所述的,该待调试资源文件可以是任意文件,于是,为了后续可以对该待调试资源文件进行调试,在本申请中还可以下载该网络资源文件至该待调试资源文件的地址。In addition, as described in step S201, 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.
具体的,该终端可根据该替换指令,确定该网络资源文件的访问路径,并根据该网络资源文件的访问路径下载该网络资源文件至该待调试资源文件的地址,则此时该待调试资源文件不再是任意文件,而已经被替换为已下载的该网络资源文件,于是后续工作人员可以在本地对该待调试资源文件进行调试。Specifically, 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.
需要说明的是,该网络资源文件的下载以及该待调试资源文件的替换可以在本申请中任一步骤中进行,仅需要保证在步骤S203中生成的该待调试资源文件的访问路径为已替换为网络资源文件的该待调试资源文件的访问路径即可。It should be noted that 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.
基于图2所示的调用文件过程,本申请实施例还提供一种调用文件装置,如图3所示。Based on the call file process shown in FIG. 2, the embodiment of the present application further provides a call file device, as shown in FIG. 3.
图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:
接收模块301,用于接收https网页中网络资源文件的替换指令;The receiving module 301 is configured to receive a replacement instruction of a network resource file in the https webpage;
执行模块302,用于根据所述替换指令,在本地建立虚拟服务器;The executing module 302 is configured to establish a virtual server locally according to the replacement instruction;
替换模块303,用于通过所述虚拟服务器,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径;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;
根证书模块304,用于为所述虚拟服务器生成根证书;a root certificate module 304, configured to generate a root certificate for the virtual server;
子证书模块305,用于根据所述根证书,生成子证书,使得当本地浏览器根据所述https网页发起对所述网络资源文件的调用请求时,由所述虚拟服务器接收到所述调用请求,并根据替换为访问本地待调试资源文件的访问路径,向所述浏览器返回所述待调试资源文件以及所述子证书,使所述浏览器根据所述子证书,获取并执行所述待调试资源文件。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.
执行模块302具体用于,根据所述替换请求,在本地建立虚拟服务器,并确定所述虚拟服务器的域名。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.
替换模块303具体用于,根据所述虚拟服务器的域名以及所述待调试资源文件地址,生成所述待调试资源的访问路径,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径。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:
下载模块306,用于下载所述网络资源文件至所述待调试资源文件的地址。The downloading module 306 is configured to download the network resource file to the address of the resource file to be debugged.
具体的,上述如图3所示的数据库语句编译装置可以位于终端中,该终端可以是手机、平板电脑或者PC。 Specifically, 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.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。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. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。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. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, 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. Moreover, 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.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。 The above description is only an embodiment of the present application and is not intended to limit the application. Various changes and modifications can be made to the present application by those skilled in the art. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present application are intended to be included within the scope of the appended claims.

Claims (10)

  1. 一种调用文件方法,其特征在于,所述方法包括:A method of calling a file, the method comprising:
    接收针对安全套接字层超文本传输协议https网页中网络资源文件的替换指令;Receiving a replacement instruction for a network resource file in a secure socket layer hypertext transfer protocol https web page;
    根据所述替换指令,在本地建立虚拟服务器;Establishing a virtual server locally according to the replacement instruction;
    通过所述虚拟服务器,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径;Replacing an access path for accessing the network resource file with an access path for accessing a local resource file to be debugged by using the virtual server;
    为所述虚拟服务器生成根证书;Generating a root certificate for the virtual server;
    根据所述根证书,生成子证书,使得当本地浏览器根据所述https网页发起对所述网络资源文件的调用请求时,由所述虚拟服务器接收到所述调用请求,并根据替换为访问本地待调试资源文件的访问路径,向所述浏览器返回所述待调试资源文件以及所述子证书,使所述浏览器根据所述子证书,获取并执行所述待调试资源文件。Generating 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 according to the replacement, accesses the local The access path of the resource file to be debugged is returned to the browser, and the resource file to be debugged and the sub-certificate are returned to the browser, so that the browser acquires and executes the resource file to be debugged according to the sub-certificate.
  2. 如权利要求1所述的方法,其特征在于,所述替换指令包含:所述网络资源文件的标识、所述网络资源文件的访问路径、预先保存在本地的所述待调试资源文件的标识及所述待调试资源文件地址。The method of claim 1, wherein the replacement instruction comprises: an identifier of the network resource file, an access path of the network resource file, an identifier of the resource file to be debugged stored in advance, and The resource file address to be debugged.
  3. 如权利要求2所述的方法,其特征在于,根据所述替换指令,在本地建立虚拟服务器,具体包括:The method of claim 2, wherein the establishing a virtual server locally according to the replacement instruction comprises:
    根据所述替换请求,在本地建立虚拟服务器,并确定所述虚拟服务器的域名。According to the replacement request, a virtual server is established locally, and the domain name of the virtual server is determined.
  4. 如权利要求3所述的方法,其特征在于,通过所述虚拟服务器, 将访问网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径,具体包括:The method of claim 3, wherein said virtual server is Replace the access path of the access network resource file with the access path of the local resource file to be debugged, including:
    根据所述虚拟服务器的域名以及所述待调试资源文件地址,生成所述待调试资源的访问路径;Generating an access path of the to-be-debugged resource according to the domain name of the virtual server and the resource file address to be debugged;
    将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径。The access path for accessing the network resource file is replaced with the access path for accessing the local resource file to be debugged.
  5. 如权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    下载所述网络资源文件至所述待调试资源文件的地址。Download the network resource file to the address of the resource file to be debugged.
  6. 一种调用文件的装置,其特征在于,包括:A device for invoking a file, comprising:
    接收模块,用于接收安全套接字层超文本传输协议https网页中网络资源文件的替换指令;a receiving module, configured to receive a replacement instruction of a network resource file in a secure socket layer hypertext transfer protocol 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;
    子证书模块,用于根据所述根证书,生成子证书,使得当本地浏览器根据所述https网页发起对所述网络资源文件的调用请求时,由所述虚拟服务器接收到所述调用请求,并根据替换为访问本地待调试资源文件的访问路径,向所述浏览器返回所述待调试资源文件以及所述子证书,使所述浏览器根据所述子证书,获取并执行所述待调试资源文件。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.
  7. 如权利要求6所述的装置,其特征在于,所述替换指令包含:所 述网络资源文件的标识、所述网络资源文件的访问路径、预先保存在本地的所述待调试资源文件的标识及所述待调试资源文件地址。The device of claim 6 wherein said replacement instruction comprises: The identifier of the network resource file, the access path of the network resource file, the identifier of the resource file to be debugged locally saved in advance, and the resource file address to be debugged.
  8. 如权利要求7所述的装置,其特征在于,执行模块具体用于,根据所述替换请求,在本地建立虚拟服务器,并确定所述虚拟服务器的域名。The apparatus according to claim 7, wherein the execution module is specifically configured to establish a virtual server locally according to the replacement request, and determine a domain name of the virtual server.
  9. 如权利要求8所述的装置,其特征在于,替换模块具体用于,根据所述虚拟服务器的域名以及所述待调试资源文件地址,生成所述待调试资源的访问路径,将访问所述网络资源文件的访问路径替换为访问本地待调试资源文件的访问路径。The device according to claim 8, wherein the replacement module is configured to generate an access path of the resource to be debugged according to a domain name of the virtual server and a resource file address to be debugged, and access the network The access path of the resource file is replaced with the access path of the resource file to be debugged locally.
  10. 如权利要求7所述的装置,其特征在于,所述装置还包括:The device of claim 7 wherein said device further comprises:
    下载模块,用于下载所述网络资源文件至所述待调试资源文件的地址。 And a downloading module, configured to download the network resource file to an address of the resource file to be debugged.
PCT/CN2017/077273 2016-03-29 2017-03-20 File calling method and apparatus WO2017167051A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610189253.7A CN107239475B (en) 2016-03-29 2016-03-29 File calling method and device
CN201610189253.7 2016-03-29

Publications (1)

Publication Number Publication Date
WO2017167051A1 true WO2017167051A1 (en) 2017-10-05

Family

ID=59963470

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/077273 WO2017167051A1 (en) 2016-03-29 2017-03-20 File calling method and apparatus

Country Status (3)

Country Link
CN (1) CN107239475B (en)
TW (1) TWI672019B (en)
WO (1) WO2017167051A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507529A (en) * 2021-07-26 2021-10-15 上海中通吉网络技术有限公司 Method for realizing file downloading based on Web application

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110768940B (en) * 2018-07-27 2022-03-22 深信服科技股份有限公司 Ciphertext data management and control method and system based on HTTPS (Hypertext transfer protocol secure) protocol, proxy server and storage medium
CN109508437B (en) * 2018-11-21 2021-05-04 深信服科技股份有限公司 Search website auditing method, system, gateway equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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 (en) * 2012-10-15 2013-02-06 福建榕基软件股份有限公司 Method and system for realizing access encryption of mobile terminal browser
JP2014229182A (en) * 2013-05-24 2014-12-08 日本電信電話株式会社 Web browsing history acquisition device, method, and program
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)

* Cited by examiner, † Cited by third party
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 (en) * 2011-06-15 2011-10-12 中兴通讯股份有限公司 Network resource access optimizing method, Web page browser and terminal
CN103065078A (en) * 2013-01-04 2013-04-24 无锡矽鼎科技有限公司 Method of loading client certificate for Android system by OpenSSL engine
CN104539682A (en) * 2014-12-19 2015-04-22 乐视网信息技术(北京)股份有限公司 Debug method, device, mobile terminal, server and system for mobile webpage
CN105404504B (en) * 2015-11-02 2018-12-25 北京锐安科技有限公司 A kind of adjustment method and device of Web component

Patent Citations (4)

* Cited by examiner, † Cited by third party
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 (en) * 2012-10-15 2013-02-06 福建榕基软件股份有限公司 Method and system for realizing access encryption of mobile terminal browser
JP2014229182A (en) * 2013-05-24 2014-12-08 日本電信電話株式会社 Web browsing history acquisition device, method, and program
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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507529A (en) * 2021-07-26 2021-10-15 上海中通吉网络技术有限公司 Method for realizing file downloading based on Web application

Also Published As

Publication number Publication date
TW201735583A (en) 2017-10-01
CN107239475B (en) 2020-09-18
TWI672019B (en) 2019-09-11
CN107239475A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
TWI654860B (en) Hybrid application client resource calling method, client and system
CN108156022B (en) Service calling method and device and electronic equipment
JP6898452B2 (en) Data acquisition method and device
CN106354481B (en) Method and equipment for uniformly mapping HTTP (hyper text transport protocol) request
CN104767775B (en) Web application information push method and system
WO2017045563A1 (en) Web app access method, apparatus, and system
TWI608416B (en) Page return method and apparatus, page generation method and apparatus
TWI671642B (en) Method for sharing data across applications and web browser
TW201732657A (en) Service execution method and device
US20120331372A1 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US10565090B1 (en) Proxy for debugging transformed code
CN108055168B (en) Http protocol debugging system, device and method
CN108769189B (en) Cross-network-domain resource access method and device
US20060047496A1 (en) Method, system and program product for recording and replaying target service interaction data
CN104536890A (en) Testing system, method and device
CN105100294A (en) Webpage acquiring method, system, network server, browser and GSLB
US11023558B1 (en) Executing functions on-demand on a server utilizing web browsers
WO2017167051A1 (en) File calling method and apparatus
CN103838558A (en) Website building system and method, website access method and webpage adaption system
CN102662838B (en) The adjustment method of Flash and system in a kind of browser
WO2017162041A1 (en) Method and device for page display
US9571555B2 (en) Methods circuits devices systems and associated computer executable code for web augmentation
US9398041B2 (en) Identifying stored vulnerabilities in a web service
AU2018390863A1 (en) Computer system and method for extracting dynamic content from websites
CN114462101A (en) Processing system, method and device for application apk packet

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