CN109525628B - HTTP request debugging method, device and system - Google Patents
HTTP request debugging method, device and system Download PDFInfo
- Publication number
- CN109525628B CN109525628B CN201710862621.4A CN201710862621A CN109525628B CN 109525628 B CN109525628 B CN 109525628B CN 201710862621 A CN201710862621 A CN 201710862621A CN 109525628 B CN109525628 B CN 109525628B
- Authority
- CN
- China
- Prior art keywords
- data
- http
- request
- debugging
- local
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
The invention discloses a method, a device and a system for debugging an HTTP (hyper text transport protocol) request. Wherein, the method comprises the following steps: the local debugging machine sends an HTTP request to a preset server, wherein the preset server sends first HTTP data responding to the HTTP request to a cache server after receiving the HTTP request, and the cache server has a static IP address; the method comprises the steps that a local debugging machine sends a data request to a cache server, wherein after the cache server receives the data request, first HTTP data are sent to the local debugging machine in response to the data request; and the local debugging machine receives the first HTTP data and debugs the first HTTP data. The invention solves the technical problem that the data security can not be ensured because the local debugging machine needs to send the IP data to an untrusted third-party service provider in the prior art.
Description
Technical Field
The invention relates to the field of Internet, in particular to a method, a device and a system for debugging an HTTP request.
Background
The local debugging machine does not have a static IP, and the external network machine cannot directly send HTTP data to the local debugging machine. When the local debugging machine needs to debug the HTTP data, a third party service provider needs to be found, a client of the third party service provider is installed, a network administrator is contacted to bind the fixed port on the local debugging machine, and each dynamic IP change of the local debugging machine can be acquired by the third party service provider and bound to a domain name again. Through the domain name and the port bound by the network administrator, the local debugging machine can debug the HTTP data sent by the external network machine.
This method has the following problems: 1. it is complex to implement. 2. The local debugging machine needs to send the IP data to an untrusted third party service provider, and the safety of the data cannot be guaranteed.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for debugging an HTTP request, which are used for at least solving the technical problem that the data security cannot be ensured because a local debugging machine needs to send IP data to an untrusted third-party service provider in the prior art.
According to an aspect of the embodiments of the present invention, there is provided an HTTP request debugging method, including: the local debugging machine sends an HTTP request to a preset server, wherein the preset server sends first HTTP data responding to the HTTP request to a cache server after receiving the HTTP request, and the cache server has a static IP address; the local debugging machine sends a data request to the cache server, wherein the cache server responds to the data request after receiving the data request and sends the first HTTP data to the local debugging machine; and the local debugging machine receives the first HTTP data and debugs the first HTTP data.
Further, the debugging the first HTTP data by the local debugging machine includes: the local debugging machine packages the received first HTTP data into HTTP request data; and the local debugging machine sends the HTTP request data to a debugging interface of the local debugging machine, and the HTTP request data is debugged through the debugging interface.
Further, the sending, by the local debugger, the data request to the cache server includes: and the local debugging machine sends the data request to the cache server in a polling mode.
According to an aspect of the embodiments of the present invention, there is also provided an HTTP request debugging method, including: the method comprises the steps that a cache server receives first HTTP data, wherein the first HTTP data are sent to the cache server after a preset server receives an HTTP request sent by a local debugging machine, and the cache server has a static IP address; the cache server receives a data request sent by the local debugging machine; and the cache server responds to the data request and sends the first HTTP data to the local debugging machine, so that the local debugging machine debugs the first HTTP data after receiving the first HTTP data.
According to an aspect of the embodiments of the present invention, there is also provided an HTTP request debugging system, including: the local debugging machine is used for sending an HTTP request to a preset server; the preset server is used for sending first HTTP data responding to the HTTP request to the cache server after receiving the HTTP request; and the cache server is provided with a static IP address, responds to the data request after receiving the data request sent by the local debugging machine, and sends the first HTTP data to the local debugging machine so that the local debugging machine debugs the first HTTP data after receiving the first HTTP data.
According to an aspect of the embodiments of the present invention, there is also provided an HTTP request debugging apparatus, including: the local debugging machine first sending unit is used for sending an HTTP request to a preset server, wherein the preset server sends first HTTP data responding to the HTTP request to a cache server after receiving the HTTP request, and the cache server has a static IP address; a second sending unit of the local debugger, configured to send a data request to the cache server, where after receiving the data request, the cache server sends the first HTTP data to the local debugger in response to the data request; the local debugging machine receiving unit is used for receiving the first HTTP data; and the local debugging machine debugging unit is used for debugging the first HTTP data.
Further, the local debugger debugging unit includes: the packaging subunit is used for packaging the received first HTTP data into HTTP request data; the sending subunit is used for sending the HTTP request data to a debugging interface; and the control subunit is used for controlling the debugging interface to debug the HTTP request data.
According to an aspect of the embodiments of the present invention, there is also provided an HTTP request debugging apparatus, including: the first receiving unit of the cache server is used for receiving first HTTP data, wherein the first HTTP data are sent to the cache server after a preset server receives an HTTP request sent by a local debugging machine, and the cache server has a static IP address; the second receiving unit of the cache server is used for receiving the data request sent by the local debugging machine; and the cache server sending unit is used for responding to the data request and sending the first HTTP data to the local debugging machine so as to debug the first HTTP data after the local debugging machine receives the first HTTP data.
According to an aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the program executes the HTTP request debugging method described above.
According to an aspect of the embodiment of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes the HTTP request debugging method.
In the embodiment of the application, the cache server has a static IP, so the cache server can directly receive the first HTTP data sent by the extranet machine, the local debugger sends the data request to the cache server, after receiving the data request, the cache server sends the first HTTP data to the local debugger, and the local debugger debugs the first HTTP data.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow diagram of an alternative HTTP request debugging method according to an embodiment of the present invention;
FIG. 2 is a flow diagram of yet another alternative HTTP request debugging method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an alternative HTTP request debugging apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an alternative HTTP request debugging apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Technical term interpretation:
local debugging machine: the machines used by programmers to develop programs are typically static IP-free, meaning that no other machine on the network can find it.
HTTP: the HyperText Transfer Protocol, which is called HyperText Transfer Protocol in english, is the most widely used network Protocol on the internet.
In accordance with an embodiment of the present invention, there is provided an embodiment of an HTTP request debugging method, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Example 1
Fig. 1 is a flowchart of an alternative HTTP request debugging method according to an embodiment of the present invention. The method is performed by a local debugging machine. As shown in fig. 1, the method comprises the steps of:
step S102, the local debugging machine sends an HTTP request to a preset server, wherein after the preset server receives the HTTP request, first HTTP data responding to the HTTP request are sent to a cache server, and the cache server has a static IP address.
And step S104, the local debugging machine sends a data request to the cache server, wherein after the cache server receives the data request, the cache server responds to the data request and sends first HTTP data to the local debugging machine.
And step S106, the local debugging machine receives the first HTTP data and debugs the first HTTP data.
The provisioning server is an extranet machine. The local debugger does not have static IP, so the extranet machine cannot send HTTP data directly to the local debugger. The cache server has a static IP address, so the extranet machine can send HTTP data directly to the cache server. And the local debugging machine sends an HTTP request to a preset server. After receiving the HTTP request, the preset server sends first HTTP data responding to the HTTP request to the cache server. And the local debugging machine sends a data request to the cache server. After receiving the data request, the cache server responds to the data request and sends first HTTP data to the local debugging machine. After the local debugging machine receives the first HTTP data, debugging the first HTTP data.
In the embodiment of the application, the cache server has a static IP, so that the cache server can directly receive first HTTP data sent by an extranet machine, the local debugger sends a data request to the cache server, the cache server sends the first HTTP data to the local debugger after receiving the data request, and the local debugger debugs the first HTTP data.
In the embodiment of the application, because a client program of a third party is not required to be installed, a network administrator is not required to be contacted for binding the ports, the operation is simple, and the implementation is easy.
Optionally, the debugging the first HTTP data by the local debugger includes: the local debugging machine packages the received first HTTP data into HTTP request data; and the local debugging machine sends the HTTP request data to a debugging interface of the local debugging machine, and the HTTP request data is debugged through the debugging interface.
Optionally, the sending, by the local debugger, the data request to the cache server includes: the local debugging machine sends a data request to the cache server in a polling mode.
A static IP machine is used as a cache server, and an HTTP request packet sent by an external network is stored on the server. After the local debugging machine starts the Web service, the Web service can request data from the cache server in a polling mode, the cache server converts the HTTP request of the external network into an HTTP response and transmits the HTTP response to the local debugging machine, and the local debugging machine sends the HTTP request to an interface to be debugged after receiving the request, so that the HTTP request packet of the external network is sent to a debugging interface of the local debugging machine.
Example 2
Fig. 2 is a flowchart of an alternative HTTP request debugging method according to an embodiment of the present invention. The method is performed by a cache server. As shown in fig. 2, the method comprises the steps of:
step S202, the cache server receives first HTTP data, wherein the first HTTP data are sent to the cache server after the preset server receives an HTTP request sent by the local debugging machine, and the cache server has a static IP address.
Step S204, the cache server receives the data request sent by the local debugging machine.
Step S206, the cache server responds to the data request, and sends the first HTTP data to the local debugging machine, so that the local debugging machine debugs the first HTTP data after receiving the first HTTP data.
The provisioning server is an extranet machine. The local debugger does not have static IP, so the extranet machine cannot send HTTP data directly to the local debugger. The cache server has a static IP address, so the extranet machine can send HTTP data directly to the cache server. And the local debugging machine sends an HTTP request to a preset server. After receiving the HTTP request, the preset server sends first HTTP data responding to the HTTP request to the cache server. And the local debugging machine sends a data request to the cache server. After receiving the data request, the cache server responds to the data request and sends first HTTP data to the local debugging machine. After the local debugging machine receives the first HTTP data, debugging the first HTTP data.
In the embodiment of the application, the cache server has a static IP, so that the cache server can directly receive first HTTP data sent by an extranet machine, the local debugger sends a data request to the cache server, the cache server sends the first HTTP data to the local debugger after receiving the data request, and the local debugger debugs the first HTTP data.
In the embodiment of the application, because a client program of a third party is not required to be installed, a network administrator is not required to be contacted for binding the ports, the operation is simple, and the implementation is easy.
In the embodiment of the application, a cache server of the HTTP request packet is deployed on a static IP machine in advance, and the local debugging machine caches the HTTP request that the server requests for caching. The HTTP request packet on the cache server is pulled to the local and then locally forwarded to the interface to be debugged, so that the functions of caching the HTTP request by using the static IP server, locally debugging the machine request by using the dynamic IP and locally forwarding the HTTP request to the debugging interface are realized.
Example 3
The embodiment of the invention also provides an HTTP request debugging system. The HTTP request debugging system is configured to execute the HTTP request debugging method in embodiment 1. The HTTP request debugging system comprises: the system comprises a local debugging machine, a preset server and a cache server.
And the local debugging machine is used for sending the HTTP request to the preset server.
And the preset server is used for sending first HTTP data responding to the HTTP request to the cache server after receiving the HTTP request.
And the cache server is provided with a static IP address, responds to the data request after receiving the data request sent by the local debugging machine, and sends first HTTP data to the local debugging machine so that the local debugging machine debugs the first HTTP data after receiving the first HTTP data.
The provisioning server is an extranet machine. The local debugger does not have static IP, so the extranet machine cannot send HTTP data directly to the local debugger. The cache server has a static IP address, so the extranet machine can send HTTP data directly to the cache server. And the local debugging machine sends an HTTP request to a preset server. After receiving the HTTP request, the preset server sends first HTTP data responding to the HTTP request to the cache server. And the local debugging machine sends a data request to the cache server. After receiving the data request, the cache server responds to the data request and sends first HTTP data to the local debugging machine. After the local debugging machine receives the first HTTP data, debugging the first HTTP data.
In the embodiment of the application, the cache server has a static IP, so that the cache server can directly receive first HTTP data sent by an extranet machine, the local debugger sends a data request to the cache server, the cache server sends the first HTTP data to the local debugger after receiving the data request, and the local debugger debugs the first HTTP data.
In the embodiment of the application, because a client program of a third party is not required to be installed, a network administrator is not required to be contacted for binding the ports, the operation is simple, and the implementation is easy.
Example 4
The embodiment of the invention also provides an HTTP request debugging device. The device is located on a local debugging machine. The HTTP request debugging apparatus is configured to execute the HTTP request debugging method in embodiment 1.
Fig. 3 is a schematic diagram of an alternative HTTP request debugging apparatus according to an embodiment of the present invention, as shown in fig. 3, the apparatus includes: the local debugging machine comprises a first local debugging machine sending unit 30, a second local debugging machine sending unit 32, a local debugging machine receiving unit 34 and a local debugging machine debugging unit 36.
The local debug machine first sending unit 30 is configured to send an HTTP request to a preset server, where after receiving the HTTP request, the preset server sends first HTTP data in response to the HTTP request to a cache server, and the cache server has a static IP address.
And a second sending unit 32 of the local debugger, configured to send a data request to the cache server, where after the cache server receives the data request, the cache server sends the first HTTP data to the local debugger in response to the data request.
The local debugger receiving unit 34 is configured to receive the first HTTP data.
And the local debugger debugging unit 36 is configured to debug the first HTTP data.
Optionally, the local debugger debugging unit includes: a packing subunit, a sending subunit and a control subunit. And the packaging subunit is used for packaging the received first HTTP data into HTTP request data. And the sending subunit is used for sending the HTTP request data to the debugging interface. And the control subunit is used for controlling the debugging interface to debug the HTTP request data.
The HTTP request debugging apparatus includes a processor and a memory, the first sending unit 30, the second sending unit 32, the receiving unit 34, the debugging unit 36, and the like of the local debugger are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can set one or more, and the HTTP request debugging method is executed by adjusting the parameters of the kernel.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium, on which a program is stored, and when the program is executed by a processor, the HTTP request debugging method is implemented.
The embodiment of the invention provides a processor, which is used for running a program, wherein the HTTP request debugging method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
sending an HTTP request to a preset server, wherein after the preset server receives the HTTP request, first HTTP data responding to the HTTP request are sent to a cache server, and the cache server has a static IP address; sending a data request to a cache server, wherein after receiving the data request, the cache server responds to the data request and sends first HTTP data to a local debugging machine; receiving first HTTP data; debugging the first HTTP data.
Packaging the received first HTTP data into HTTP request data; sending the HTTP request data to a debugging interface of the user; and controlling the debugging interface to debug the HTTP request data.
And sending a data request to the cache server in a polling mode.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
sending an HTTP request to a preset server, wherein after the preset server receives the HTTP request, first HTTP data responding to the HTTP request are sent to a cache server, and the cache server has a static IP address; sending a data request to a cache server, wherein after receiving the data request, the cache server responds to the data request and sends first HTTP data to a local debugging machine; receiving first HTTP data; debugging the first HTTP data.
Packaging the received first HTTP data into HTTP request data; and sending the HTTP request data to a debugging interface of the debugging device, and debugging the HTTP request data through the debugging interface.
And sending a data request to the cache server in a polling mode.
Example 5
The embodiment of the invention also provides an HTTP request debugging device. The device is located on a cache server. The HTTP request debugging apparatus is configured to execute the HTTP request debugging method in embodiment 2.
Fig. 4 is a schematic diagram of an alternative HTTP request debugging apparatus according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes: a first cache server receiving unit 40, a second cache server receiving unit 42, and a cache server transmitting unit 44.
The first receiving unit 40 of the cache server is configured to receive first HTTP data, where the first HTTP data is sent to the cache server after the preset server receives an HTTP request sent by the local debugger, and the cache server has a static IP address.
And the second receiving unit 42 of the cache server is configured to receive the data request sent by the local debugger.
And the cache server sending unit 44 is configured to send the first HTTP data to the local debugging machine in response to the data request, so that the local debugging machine debugs the first HTTP data after receiving the first HTTP data.
The HTTP request debugging apparatus includes a processor and a memory, the first cache server receiving unit 40, the second cache server receiving unit 42, the sending unit 44, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can set one or more, and the HTTP request debugging method is executed by adjusting the parameters of the kernel.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium, on which a program is stored, and when the program is executed by a processor, the HTTP request debugging method is implemented.
The embodiment of the invention provides a processor, which is used for running a program, wherein the HTTP request debugging method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
receiving first HTTP data, wherein the first HTTP data are sent to a cache server after a preset server receives an HTTP request sent by a local debugging machine, and the cache server has a static IP address; receiving a data request sent by a local debugging machine; and responding to the data request, and sending first HTTP data to the local debugging machine so that the local debugging machine debugs the first HTTP data after receiving the first HTTP data.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
receiving first HTTP data, wherein the first HTTP data are sent to a cache server after a preset server receives an HTTP request sent by a local debugging machine, and the cache server has a static IP address; receiving a data request sent by a local debugging machine; and responding to the data request, and sending first HTTP data to the local debugging machine so that the local debugging machine debugs the first HTTP data after receiving the first HTTP data.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. An HTTP request debugging method, comprising:
the local debugging machine sends an HTTP request to a preset server, wherein the preset server sends first HTTP data responding to the HTTP request to a cache server after receiving the HTTP request, and the cache server has a static IP address;
the local debugging machine sends a data request to the cache server, wherein the cache server responds to the data request after receiving the data request and sends the first HTTP data to the local debugging machine;
the local debugging machine receives the first HTTP data and debugs the first HTTP data;
wherein the preset server is an extranet machine.
2. The method of claim 1, wherein debugging the first HTTP data by the local debugger comprises:
the local debugging machine packages the received first HTTP data into HTTP request data;
and the local debugging machine sends the HTTP request data to a debugging interface of the local debugging machine, and the HTTP request data is debugged through the debugging interface.
3. The method of claim 1, wherein sending, by the local debug machine, a data request to the cache server comprises:
and the local debugging machine sends the data request to the cache server in a polling mode.
4. An HTTP request debugging method, comprising:
the method comprises the steps that a cache server receives first HTTP data, wherein the first HTTP data are sent to the cache server after a preset server receives an HTTP request sent by a local debugging machine, and the cache server has a static IP address;
the cache server receives a data request sent by the local debugging machine;
the cache server responds to the data request and sends the first HTTP data to the local debugging machine, so that the local debugging machine debugs the first HTTP data after receiving the first HTTP data;
wherein the preset server is an extranet machine.
5. An HTTP request debugging system, comprising:
the local debugging machine is used for sending an HTTP request to a preset server;
the preset server is used for sending first HTTP data responding to the HTTP request to the cache server after receiving the HTTP request;
the cache server is provided with a static IP address, responds to the data request after receiving the data request sent by the local debugging machine, and sends the first HTTP data to the local debugging machine so that the local debugging machine debugs the first HTTP data after receiving the first HTTP data;
wherein the preset server is an extranet machine.
6. An HTTP request debugging apparatus, comprising:
the local debugging machine first sending unit is used for sending an HTTP request to a preset server, wherein the preset server sends first HTTP data responding to the HTTP request to a cache server after receiving the HTTP request, and the cache server has a static IP address;
a second sending unit of the local debugger, configured to send a data request to the cache server, where after receiving the data request, the cache server sends the first HTTP data to the local debugger in response to the data request;
the local debugging machine receiving unit is used for receiving the first HTTP data;
the local debugging machine debugging unit is used for debugging the first HTTP data;
wherein the preset server is an extranet machine.
7. The apparatus of claim 6, wherein the local debugger debugging unit comprises:
the packaging subunit is used for packaging the received first HTTP data into HTTP request data;
the sending subunit is used for sending the HTTP request data to a debugging interface;
and the control subunit is used for controlling the debugging interface to debug the HTTP request data.
8. An HTTP request debugging apparatus, comprising:
the first receiving unit of the cache server is used for receiving first HTTP data, wherein the first HTTP data are sent to the cache server after a preset server receives an HTTP request sent by a local debugging machine, and the cache server has a static IP address;
the second receiving unit of the cache server is used for receiving the data request sent by the local debugging machine;
a cache server sending unit, configured to send, in response to the data request, the first HTTP data to the local debugging machine, so that the local debugging machine debugs the first HTTP data after receiving the first HTTP data;
wherein the preset server is an extranet machine.
9. A storage medium comprising a stored program, wherein the program executes the HTTP request debugging method of any one of claims 1 to 3.
10. A processor, configured to execute a program, wherein the program executes the HTTP request debugging method according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710862621.4A CN109525628B (en) | 2017-09-20 | 2017-09-20 | HTTP request debugging method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710862621.4A CN109525628B (en) | 2017-09-20 | 2017-09-20 | HTTP request debugging method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109525628A CN109525628A (en) | 2019-03-26 |
CN109525628B true CN109525628B (en) | 2021-09-07 |
Family
ID=65769318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710862621.4A Active CN109525628B (en) | 2017-09-20 | 2017-09-20 | HTTP request debugging method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109525628B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101631127A (en) * | 2009-08-06 | 2010-01-20 | 中兴通讯股份有限公司 | File transfer method and clients |
CN103379182A (en) * | 2012-04-19 | 2013-10-30 | 阿里巴巴集团控股有限公司 | Data transmission method and client sides |
CN103678125A (en) * | 2013-12-03 | 2014-03-26 | 华为技术有限公司 | Method and system for debugging codes |
CN103856361A (en) * | 2012-11-29 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for realizing remote debugging |
CN104518959A (en) * | 2013-09-30 | 2015-04-15 | 张永杰 | Method and device for communication between devices |
CN105376107A (en) * | 2014-08-29 | 2016-03-02 | 腾讯科技(深圳)有限公司 | Terminal test method and proxy server |
CN106101112A (en) * | 2016-06-24 | 2016-11-09 | 深圳市先河系统技术有限公司 | Access the method for privately owned equipment, system and the public network server using dynamic IP |
CN106254436A (en) * | 2016-07-28 | 2016-12-21 | 腾讯科技(深圳)有限公司 | A kind of method of remote debugging, relevant device and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7096339B2 (en) * | 2003-03-01 | 2006-08-22 | International Business Machines Corporation | System and method for detecting memory management programming errors |
US7561571B1 (en) * | 2004-02-13 | 2009-07-14 | Habanero Holdings, Inc. | Fabric address and sub-address resolution in fabric-backplane enterprise servers |
US20060264178A1 (en) * | 2005-05-20 | 2006-11-23 | Noble Gayle L | Wireless diagnostic systems |
WO2008144804A1 (en) * | 2007-05-28 | 2008-12-04 | Honeywell International Inc | Systems and methods for commissioning access control devices |
-
2017
- 2017-09-20 CN CN201710862621.4A patent/CN109525628B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101631127A (en) * | 2009-08-06 | 2010-01-20 | 中兴通讯股份有限公司 | File transfer method and clients |
CN103379182A (en) * | 2012-04-19 | 2013-10-30 | 阿里巴巴集团控股有限公司 | Data transmission method and client sides |
CN103856361A (en) * | 2012-11-29 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for realizing remote debugging |
CN104518959A (en) * | 2013-09-30 | 2015-04-15 | 张永杰 | Method and device for communication between devices |
CN103678125A (en) * | 2013-12-03 | 2014-03-26 | 华为技术有限公司 | Method and system for debugging codes |
CN105376107A (en) * | 2014-08-29 | 2016-03-02 | 腾讯科技(深圳)有限公司 | Terminal test method and proxy server |
CN106101112A (en) * | 2016-06-24 | 2016-11-09 | 深圳市先河系统技术有限公司 | Access the method for privately owned equipment, system and the public network server using dynamic IP |
CN106254436A (en) * | 2016-07-28 | 2016-12-21 | 腾讯科技(深圳)有限公司 | A kind of method of remote debugging, relevant device and system |
Also Published As
Publication number | Publication date |
---|---|
CN109525628A (en) | 2019-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI654860B (en) | Hybrid application client resource calling method, client and system | |
CN107273142B (en) | Program updating method, program running method and device | |
US11675682B2 (en) | Agent profiler to monitor activities and performance of software agents | |
US20160173567A1 (en) | Method and apparatus for resource downloading over a network from multiple sources | |
CN103744652A (en) | Hybrid APP development method and device across mobile terminals | |
US9971582B2 (en) | Selecting application wrapper logic components based on features of a mobile application to be wrapped | |
CN108121633B (en) | Abnormity capturing method and device | |
CN107016282B (en) | information processing method and device | |
WO2017193746A1 (en) | Method and system for starting application | |
US10078580B2 (en) | Operations to avoid wrapped mobile application operational errors due to interference from wrapper logic components | |
US10452365B2 (en) | Co-existential wrapping system for mobile applications | |
CN107979506B (en) | Flow acquisition and cloud display system, method, device and equipment | |
CN107147645B (en) | Method and device for acquiring network security data | |
CN110968560A (en) | Log collector configuration method, device and system | |
CN108182119B (en) | Read-write separation control method and device, storage medium and electronic device | |
US10270886B1 (en) | Method and system for dynamic optimization of a script library | |
CN113645308B (en) | Mobile terminal TCP communication, device, equipment and storage medium | |
CN105677688B (en) | Page data loading method and system | |
CN109525628B (en) | HTTP request debugging method, device and system | |
CN107239475B (en) | File calling method and device | |
CN106649081B (en) | A kind of method and device that commissioning test wraps offline in client application | |
CN112583879A (en) | Request processing method, device and system, storage medium and electronic equipment | |
CN110022332B (en) | Hypertext transfer security protocol proxy method, device, equipment and medium | |
US12058095B2 (en) | Processing method and device for external link rewriting | |
CN105653948A (en) | Method and device for preventing malicious operation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |