CN104486333A - Debug method and debug device for mobile application programs - Google Patents

Debug method and debug device for mobile application programs Download PDF

Info

Publication number
CN104486333A
CN104486333A CN201410768103.2A CN201410768103A CN104486333A CN 104486333 A CN104486333 A CN 104486333A CN 201410768103 A CN201410768103 A CN 201410768103A CN 104486333 A CN104486333 A CN 104486333A
Authority
CN
China
Prior art keywords
uniform resource
resource locator
url
http
mobile applications
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.)
Pending
Application number
CN201410768103.2A
Other languages
Chinese (zh)
Inventor
杨基彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410768103.2A priority Critical patent/CN104486333A/en
Publication of CN104486333A publication Critical patent/CN104486333A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a debug method and a debug device for mobile application programs. The debug method for mobile application programs comprises the following steps: a proxy server acquires an HTTP request of a to-be-debugged mobile application program; the proxy server judges whether the HTTP request contains a predetermined uniform resource locator or not, wherein the predetermined uniform resource locator is an address of a website which is abnormal in display in the to-be-debugged mobile application program; the proxy server returns a first HTTP response packet to the to-be-debugged mobile application program to be displayed when judging that the HTTP request contains the predetermined uniform resource locator, wherein the first HTTP response packet is pre-stored in a local storage region of the proxy server. By virtue of the method and device disclosed by the invention, the problem in the prior art that the mobile application programs on mobile equipment are relatively complex to debug is solved, so that the effect of improving the convenience for debugging the application programs on mobile equipment is achieved.

Description

Mobile applications adjustment method and device
Technical field
The present invention relates to the communications field, in particular to a kind of mobile applications adjustment method and device.
Background technology
Along with the fast development of mobile Internet, the exploitation of various mobile applications (Application, referred to as APP) also becomes very popular.Developer can complete the flow process of the exploitation of mobile applications, debugging and test on common computer, the developing instrument of various mobile applications but cannot be installed on the mobile apparatus with assistant adjustment, once mobile applications is installed on the mobile devices such as the mobile phone of domestic consumer, goes wrong and be difficult to investigation.Existing scheme is all go to investigate the problem of mobile applications by installing mobile phone simulator on common computer usually, or special debugging software is installed on the mobile devices such as mobile phone to debug this mobile applications, said method operates comparatively very complicated on the one hand, on the mobile devices such as mobile phone, special debugging software is installed debug the safety that may affect the mobile devices such as mobile phone on the other hand, such as, i Phone needs could install some debugging softwares after escaping from prison and cracking.
For in correlation technique, the problem of debugging more complicated is carried out to the mobile applications on mobile device, not yet propose effective solution at present.
Summary of the invention
Main purpose of the present invention is to provide a kind of mobile applications adjustment method and device, carries out debugging the problem of more complicated to solve in correlation technique to the mobile applications on mobile device.
To achieve these goals, according to an aspect of the present invention, a kind of mobile applications adjustment method is provided.
Mobile applications adjustment method according to the present invention comprises: proxy server obtains the HTTP request of mobile applications to be debugged, and wherein, HTTP request is the request for asking to carry out access to netwoks, and mobile applications to be debugged runs on mobile device; Proxy server judges whether comprise default URL(uniform resource locator) in HTTP request, and wherein, default URL(uniform resource locator) is the address showing abnormal webpage in mobile applications to be debugged; And proxy server is when judging to comprise default URL(uniform resource locator) in HTTP request, first http response bag is returned to mobile applications to be debugged show, wherein, the first http response bag is pre-stored within the local storage region of proxy server.
Further, proxy server judges that whether comprising default URL(uniform resource locator) in HTTP request comprises: obtain the URL(uniform resource locator) in HTTP request; URL(uniform resource locator) in HTTP request is compared with default URL(uniform resource locator); If the URL(uniform resource locator) in HTTP request is identical with default URL(uniform resource locator), then judge in HTTP request, to comprise default URL(uniform resource locator); And if URL(uniform resource locator) in HTTP request is not identical with default URL(uniform resource locator), then judge not comprise default URL(uniform resource locator) in HTTP request.
Further, proxy server is when judging to comprise default URL(uniform resource locator) in HTTP request, returned to by first http response bag before mobile applications to be debugged shows, method also comprises: proxy server obtains the second http response bag according to HTTP request from the webserver; And proxy server stores the second http response bag and HTTP request.
Further, multiple first http response bag drawn together by first http response handbag, first http response bag, when judging to comprise default URL(uniform resource locator) in HTTP request, is returned to mobile applications to be debugged and carries out display and comprise: proxy server searches the first http response bag corresponding with default URL(uniform resource locator) from multiple first http response bag by proxy server; And the first http response bag corresponding with default URL(uniform resource locator) is returned to mobile applications to be debugged and shows by proxy server.
Further, proxy server is searched the first http response handbag corresponding with default URL(uniform resource locator) and is drawn together from multiple first http response bag: proxy server obtains presets URL(uniform resource locator); The URL(uniform resource locator) that proxy server traversal is corresponding with multiple first http response bag, judges whether to there is the URL(uniform resource locator) identical with default URL(uniform resource locator); And proxy server is when judging to there is the URL(uniform resource locator) identical with default URL(uniform resource locator), obtains the first http response bag corresponding to the URL(uniform resource locator) identical with default URL(uniform resource locator) as the first http response bag corresponding with default URL(uniform resource locator).
To achieve these goals, according to a further aspect in the invention, a kind of mobile applications debugging apparatus is provided.
Mobile applications debugging apparatus according to the present invention comprises: the first acquiring unit, for obtaining the HTTP request of mobile applications to be debugged, wherein, HTTP request is the request for asking to carry out access to netwoks, and mobile applications to be debugged runs on mobile device; Judging unit, for judging whether comprise default URL(uniform resource locator) in HTTP request, wherein, default URL(uniform resource locator) is the address showing abnormal webpage in mobile applications to be debugged; And transmitting element, for when judging to comprise default URL(uniform resource locator) in HTTP request, the first http response bag being returned to mobile applications to be debugged and shows, wherein, the first http response bag is pre-stored within local storage region.
Further, judging unit comprises: the first acquisition module, for obtaining the URL(uniform resource locator) in HTTP request; Comparison module, for comparing the URL(uniform resource locator) in HTTP request with default URL(uniform resource locator); Judge module, time identical with default URL(uniform resource locator) for the URL(uniform resource locator) in HTTP request, judge in HTTP request, to comprise default URL(uniform resource locator), when URL(uniform resource locator) in HTTP request is not identical with default URL(uniform resource locator), judge not comprise default URL(uniform resource locator) in HTTP request.
Further, this device also comprises: second acquisition unit, for obtaining the second http response bag according to HTTP request from the webserver; And memory cell, for storing the second http response bag and HTTP request.
Further, multiple first http response bag drawn together by the first http response handbag, and transmitting element comprises: search module, for searching the first http response bag corresponding with default URL(uniform resource locator) from multiple first http response bag; And sending module, show for the first http response bag corresponding with default URL(uniform resource locator) is returned to mobile applications to be debugged.
Further, search module and comprise: first obtains submodule, for obtaining default URL(uniform resource locator); Judging submodule, for traveling through the URL(uniform resource locator) corresponding with multiple first http response bag, judging whether to there is the URL(uniform resource locator) identical with default URL(uniform resource locator); And second obtains submodule, when judging to there is the URL(uniform resource locator) identical with default URL(uniform resource locator), obtain the first http response bag corresponding to the URL(uniform resource locator) identical with default URL(uniform resource locator) as the first http response bag corresponding with default URL(uniform resource locator).
Pass through the present invention, proxy server is adopted to monitor the HTTP flow bag of mobile applications to be debugged, and the debugging realizing mobile applications to be debugged replaced by the http response bag corresponding to default URL(uniform resource locator), solve the problem of carrying out debugging more complicated in correlation technique to the mobile applications on mobile device, and then reach the effect improved the convenience that the mobile applications on mobile device is debugged.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the mobile applications adjustment method according to the embodiment of the present invention;
Fig. 2 is the schematic diagram of the Configuration Agent server according to the embodiment of the present invention; And
Fig. 3 is the schematic diagram of the mobile applications debugging apparatus according to the embodiment of the present invention.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The application's scheme is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the embodiment of the application's part, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
It should be noted that, term " first ", " second " etc. in the specification of the application and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that the embodiment of the application described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
According to the embodiment of the present invention, provide a kind of mobile applications adjustment method, Fig. 1 is the flow chart of the mobile applications adjustment method according to the embodiment of the present invention.
As shown in Figure 1, this mobile applications adjustment method comprises following step S102 to step S106:
Step S102: proxy server obtains the HTTP request of mobile applications to be debugged, wherein, HTTP request is the request for asking to carry out access to netwoks, and mobile applications to be debugged runs on mobile device.
Proxy server is the server between browser and WEB server, when browser carries out access to netwoks, not send access request directly to WEB server, but send access request to proxy server, fetch the data needed for browser by proxy server from WEB server and send browser to, thus proxy server can monitor the communication data of browser and WEB server.The proxy server of the embodiment of the present invention is http proxy server, HTTP (Hyper Text Transfer Protocol) i.e. HTML (Hypertext Markup Language), the most widely used a kind of communication protocol when the Internet carrying out information transmission, above-mentioned HTTP proxy server has monitoring HTTP flow bag, store HTTP flow bag to the local storage region of http proxy server and filter specific URL and carry out the function that HTTP bag replaces, wherein, HTTP flow bag refers to and carries out based on HTTP the packet that communicates, such as, browser sends access request to http proxy server, and http proxy server obtains data by this access request from WEB server and returns to browser, HTTP flow handbag is containing all data of this communication process.
Particularly, the proxy server of the embodiment of the present invention can be arranged on the computer of user, and in the mobile devices such as mobile phone, configure the address of this proxy server, comprise IP address and port, to set up communicating of mobile device and proxy server, such as, the address of proxy server is 10.136.4.133:8888, IP address and the port of this proxy server are then set in the network settings of mobile phone, as shown in Figure 2, 10.136.4.133 is set in proxy server host name, proxy server port is set to 8888, thus the communication of setting up between mobile phone and this proxy server, now, the access of mobile phone to network needs through this proxy server.Mobile applications to be debugged can be arbitrarily based on the mobile applications of http communication agreement, such as, and the mobile applications such as Netease's news, microblogging.When user runs these mobile applications on the mobile apparatus, the situation of web displaying exception may be there is, such as, when user is by Netease's news Client browse news, occur that the display of certain news pages is abnormal, as, news content display not exclusively, now need to debug this mobile applications, such as, revise the format showing the abnormal page in this mobile applications.The HTTP request of mobile applications to be debugged is namely when user accesses certain webpage by mobile applications to be debugged, the access request that mobile applications to be debugged sends to proxy server, such as, after the link of certain news of user's webpage clicking news client, first send request to proxy server.The URL(uniform resource locator) of resource and the agreement of use of needs access is comprised in HTTP request.
Step S104: proxy server judges whether comprise default URL(uniform resource locator) in HTTP request, wherein, default URL(uniform resource locator) is the address showing abnormal webpage in mobile applications to be debugged.
Proxy server, after getting the HTTP request coming from mobile applications to be debugged, judges whether comprise default URL(uniform resource locator) in HTTP request.Default URL(uniform resource locator) is the address showing abnormal webpage in mobile applications to be debugged, such as, when user occurs abnormal by mobile device access http://www.baidu.com/, now this http://www.baidu.com/ can be set to default URL(uniform resource locator).Particularly, proxy server judges that whether comprising default URL(uniform resource locator) in HTTP request comprises: obtain the URL(uniform resource locator) in HTTP request; URL(uniform resource locator) in HTTP request is compared with default URL(uniform resource locator); If the URL(uniform resource locator) in HTTP request is identical with default URL(uniform resource locator), then judge in HTTP request, to comprise default URL(uniform resource locator); And if URL(uniform resource locator) in HTTP request is not identical with default URL(uniform resource locator), then judge not comprise default URL(uniform resource locator) in HTTP request.
Step S106: proxy server is when judging to comprise default URL(uniform resource locator) in HTTP request, first http response bag is returned to mobile applications to be debugged show, wherein, the first http response bag is pre-stored within the local storage region of proxy server.
Proxy server judges that comprising default URL(uniform resource locator) in HTTP request illustrates that the webpage of this access request acquisition shows abnormal webpage in mobile applications to be debugged, if proxy server or directly obtain data from WEB server and return to mobile applications to be debugged and show, the page now shown on mobile applications to be debugged still shows exception.First http response bag is the http response bag again write after developer analyzes the abnormal page exception display reason of display, such as, certain page display of Netease's news is abnormal, developer the analysis found that it may is that the data obtained from WEB server because the format of this page is incompatible cause, now, can modify for the format of this webpage, be the first http response bag amended code storage.The embodiment of the present invention does not directly revise the code of mobile applications, but write new http response bag, revise accordingly in the http response bag that this is new, and this new http response bag (i.e. the first http response bag) is stored in the local storage region of proxy server.Http response bag is the packet for responding HTTP request.
Proxy server is when judging to comprise default URL(uniform resource locator) in HTTP request, first http response bag is returned to mobile applications to be debugged show, if display is normal on mobile applications to be debugged, illustrate and debug successfully, now, the code of mobile applications can be changed according to the amendment logic of the first http response bag, if show still abnormal on mobile applications to be debugged, now developer needs again to repeat aforesaid operations and debugs, show normally until the first http response returned wraps on mobile applications to be debugged, complete debugging.
The embodiment of the present invention monitors the HTTP flow of mobile applications to be debugged by proxy server, and http response bag is replaced to the debugging realizing mobile applications to be debugged, without the need to revise mobile applications software code, without the need to Installation and Debugging software on the mobile apparatus, conveniently realize the debugging of mobile applications to be debugged, and be applicable to, arbitrarily based on the debugging of the Mobile solution journey of http protocol, solve the problem of carrying out debugging more complicated in correlation technique to the mobile applications on mobile device.
Preferably, proxy server is when judging to comprise default URL(uniform resource locator) in HTTP request, returned to by first http response bag before mobile applications to be debugged shows, method also comprises: proxy server obtains the second http response bag according to HTTP request from the webserver; And proxy server stores the second http response bag and HTTP request.
Second http response bag is the http response bag that proxy server obtains from the webserver according to HTTP request, when proxy server receives the second http response bag returned from the webserver, the HTTP request association store of this second http response bag and its correspondence is got up, the first http response bag is write according to this second http response bag for developer, thus improve the first http response bag write efficiency, improve further the efficiency of mobile applications debugging.
Alternatively, multiple first http response bag drawn together by first http response handbag, first http response bag, when judging to comprise default URL(uniform resource locator) in HTTP request, is returned to mobile applications to be debugged and carries out display and comprise: proxy server searches the first http response bag corresponding with default URL(uniform resource locator) from multiple first http response bag by proxy server; And the first http response bag corresponding with default URL(uniform resource locator) is returned to mobile applications to be debugged and shows by proxy server.
Multiple first http response bag can be the address corresponding respectively to the page that multiple display is abnormal in same mobile applications to be debugged, also can be correspond to the address showing the abnormal page in multiple mobile applications to be debugged.In order to fast finding is to presetting the first http response bag corresponding to URL(uniform resource locator), in advance can by the URL(uniform resource locator) association store of multiple first http response bag with its correspondence.Alternatively, proxy server is searched the first http response handbag corresponding with default URL(uniform resource locator) and is drawn together from multiple first http response bag: proxy server obtains presets URL(uniform resource locator); The URL(uniform resource locator) that proxy server traversal is corresponding with multiple first http response bag, judges whether to there is the URL(uniform resource locator) identical with default URL(uniform resource locator); And proxy server is when judging to there is the URL(uniform resource locator) identical with default URL(uniform resource locator), obtains the first http response bag corresponding to the URL(uniform resource locator) identical with default URL(uniform resource locator) as the first http response bag corresponding with default URL(uniform resource locator).
By default URL(uniform resource locator) and URL(uniform resource locator) corresponding to multiple first http response bag are compared respectively, if there is the URL(uniform resource locator) identical with default URL(uniform resource locator) in the URL(uniform resource locator) that multiple first http response bag is corresponding, then obtain the first http response bag that the URL(uniform resource locator) identical with default URL(uniform resource locator) associates, and using this first http response bag as the first http response bag corresponding with default URL(uniform resource locator).
As can be seen from the above description, present invention achieves following technique effect:
The embodiment of the present invention obtains the HTTP request of mobile applications to be debugged by proxy server, judge whether comprise default URL(uniform resource locator) in HTTP request, and when judging to comprise default URL(uniform resource locator) in HTTP request, the first http response bag being returned to mobile applications to be debugged and shows.Monitored by the HTTP flow bag of proxy server to mobile applications to be debugged, when comprising default URL(uniform resource locator) in the HTTP request monitoring mobile applications to be debugged, then replace http response bag corresponding to this HTTP request with the first http response bag that the local storage region of proxy server stores, realize the debugging of mobile applications to be debugged, without the need to revise mobile applications to be debugged software code and without the need to Installation and Debugging software on the mobile apparatus, conveniently realize the debugging of mobile applications to be debugged, and be applicable to arbitrarily based on the debugging of the Mobile solution journey of http protocol, solve the problem of carrying out debugging more complicated in correlation technique to the mobile applications on mobile device.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
According to the another aspect of the embodiment of the present invention, provide a kind of mobile applications debugging apparatus, this mobile applications debugging apparatus may be used for the mobile applications adjustment method performing the embodiment of the present invention, and the mobile applications adjustment method of the embodiment of the present invention also can be performed by the mobile applications debugging apparatus of the embodiment of the present invention.
As shown in Figure 3, this mobile applications debugging apparatus comprises: the first acquiring unit 10, judging unit 20 and transmitting element 30.
First acquiring unit 10, for obtaining the HTTP request of mobile applications to be debugged, wherein, HTTP request is the request for asking to carry out access to netwoks, and mobile applications to be debugged runs on mobile device.
The proxy server of the embodiment of the present invention is http proxy server, HTTP (Hyper Text TransferProtocol) i.e. HTML (Hypertext Markup Language), the most widely used a kind of communication protocol when the Internet carrying out information transmission, above-mentioned HTTP proxy server has monitoring HTTP flow bag, store HTTP flow bag to the local storage region of http proxy server and filter specific URL and carry out the function that HTTP bag replaces, wherein, HTTP flow bag refers to and carries out based on HTTP the packet that communicates.
Judging unit 20, for judging whether comprise default URL(uniform resource locator) in HTTP request, wherein, default URL(uniform resource locator) is the address showing abnormal webpage in mobile applications to be debugged.
Proxy server, after getting the HTTP request coming from mobile applications to be debugged, judges whether comprise default URL(uniform resource locator) in HTTP request.Default URL(uniform resource locator) is the address showing abnormal webpage in mobile applications to be debugged, such as, when user occurs abnormal by mobile device access http://www.baidu.com/, now this http://www.baidu.com/ can be set to default URL(uniform resource locator).
Transmitting element 30, for when judging to comprise default URL(uniform resource locator) in HTTP request, returning to mobile applications to be debugged by the first http response bag and showing, and wherein, the first http response bag is pre-stored within local storage region.
First http response bag is the http response bag again write after developer analyzes the abnormal page exception display reason of display, such as, certain page display of Netease's news is abnormal, developer the analysis found that it may is that the data obtained from the webserver because the format of this page is incompatible cause, now, can modify for the format of this webpage, be the first http response bag amended code storage.
Proxy server is when judging to comprise default URL(uniform resource locator) in HTTP request, first http response bag is returned to mobile applications to be debugged show, if display is normal on mobile applications to be debugged, illustrate and debug successfully, now, the code of mobile applications can be changed according to the amendment logic of the first http response bag, if show still abnormal on mobile applications to be debugged, now developer needs again to repeat aforesaid operations and debugs, show normally until the first http response returned wraps on mobile applications to be debugged, complete debugging.
The embodiment of the present invention obtains the HTTP request of mobile applications to be debugged by the first acquiring unit 10, judging unit 20 judges whether comprise default URL(uniform resource locator) in HTTP request, first http response bag, when judging to comprise default URL(uniform resource locator) in HTTP request, is returned to mobile applications to be debugged and shows by transmitting element 30.By monitoring the HTTP flow bag of mobile applications to be debugged, when comprising default URL(uniform resource locator) in the HTTP request monitoring mobile applications to be debugged, then replace http response bag corresponding to this HTTP request with the first http response bag that local storage region stores, realize the debugging of mobile applications to be debugged, without the need to revising the software code of mobile applications to be debugged, without the need to Installation and Debugging software on the mobile apparatus, conveniently realize the debugging of mobile applications to be debugged, and be applicable to arbitrarily based on the debugging of the Mobile solution journey of http protocol, solve the problem of carrying out debugging more complicated in correlation technique to the mobile applications on mobile device.
Alternatively, judging unit 20 comprises: the first acquisition module, for obtaining the URL(uniform resource locator) in HTTP request; Comparison module, for comparing the URL(uniform resource locator) in HTTP request with default URL(uniform resource locator); Judge module, time identical with default URL(uniform resource locator) for the URL(uniform resource locator) in HTTP request, judge in HTTP request, to comprise default URL(uniform resource locator), when URL(uniform resource locator) in HTTP request is not identical with default URL(uniform resource locator), judge not comprise default URL(uniform resource locator) in HTTP request.
Preferably, this device also comprises: second acquisition unit, for obtaining the second http response bag according to HTTP request from the webserver; And memory cell, for storing the second http response bag and HTTP request.
Alternatively, multiple first http response bag drawn together by the first http response handbag, and transmitting element comprises: search module, for searching the first http response bag corresponding with default URL(uniform resource locator) from multiple first http response bag; And sending module, show for the first http response bag corresponding with default URL(uniform resource locator) is returned to mobile applications to be debugged.
Alternatively, search module and comprise: first obtains submodule, for obtaining default URL(uniform resource locator); Judging submodule, for traveling through the URL(uniform resource locator) corresponding with multiple first http response bag, judging whether to there is the URL(uniform resource locator) identical with default URL(uniform resource locator); And second obtains submodule, when judging to there is the URL(uniform resource locator) identical with default URL(uniform resource locator), obtain the first http response bag corresponding to the URL(uniform resource locator) identical with default URL(uniform resource locator) as the first http response bag corresponding with default URL(uniform resource locator).
Particularly, the mobile applications debugging apparatus in the embodiment of the present invention can be proxy server.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a mobile applications adjustment method, is characterized in that, comprising:
Proxy server obtains the HTTP request of mobile applications to be debugged, and wherein, described HTTP request is the request for asking to carry out access to netwoks, and described mobile applications to be debugged runs on mobile device;
Described proxy server judges whether comprise default URL(uniform resource locator) in described HTTP request, and wherein, described default URL(uniform resource locator) is the address showing abnormal webpage in described mobile applications to be debugged; And
Described proxy server is when judging to comprise described default URL(uniform resource locator) in described HTTP request, first http response bag is returned to described mobile applications to be debugged show, wherein, described first http response bag is pre-stored within the local storage region of described proxy server.
2. mobile applications adjustment method according to claim 1, is characterized in that, described proxy server judges that whether comprising default URL(uniform resource locator) in described HTTP request comprises:
Obtain the URL(uniform resource locator) in described HTTP request;
URL(uniform resource locator) in described HTTP request is compared with described default URL(uniform resource locator);
If the URL(uniform resource locator) in described HTTP request is identical with described default URL(uniform resource locator), then judge in described HTTP request, to comprise described default URL(uniform resource locator); And
If the URL(uniform resource locator) in described HTTP request is not identical with described default URL(uniform resource locator), then judge not comprise described default URL(uniform resource locator) in described HTTP request.
3. mobile applications adjustment method according to claim 1, it is characterized in that, described proxy server is when judging to comprise described default URL(uniform resource locator) in described HTTP request, returned to by first http response bag before described mobile applications to be debugged shows, described method also comprises:
Described proxy server obtains the second http response bag according to described HTTP request from the webserver; And
Described proxy server stores described second http response bag and described HTTP request.
4. mobile applications adjustment method according to claim 1, it is characterized in that, multiple first http response bag drawn together by described first http response handbag, first http response bag, when judging to comprise described default URL(uniform resource locator) in described HTTP request, is returned to described mobile applications to be debugged and carries out display and comprise by described proxy server:
Described proxy server searches the first http response bag corresponding with described default URL(uniform resource locator) from described multiple first http response bag; And
The first http response bag corresponding with described default URL(uniform resource locator) is returned to described mobile applications to be debugged and shows by described proxy server.
5. mobile applications adjustment method according to claim 4, is characterized in that, described proxy server is searched the first http response handbag corresponding with described default URL(uniform resource locator) and drawn together from described multiple first http response bag:
Described proxy server obtains described default URL(uniform resource locator);
The URL(uniform resource locator) that described proxy server traversal is corresponding with described multiple first http response bag, judges whether to there is the URL(uniform resource locator) identical with described default URL(uniform resource locator); And
Described proxy server, when judging to there is the URL(uniform resource locator) identical with described default URL(uniform resource locator), obtains the first http response bag corresponding to the URL(uniform resource locator) identical with described default URL(uniform resource locator) as the first http response bag corresponding with described default URL(uniform resource locator).
6. a mobile applications debugging apparatus, is characterized in that, comprising:
First acquiring unit, for obtaining the HTTP request of mobile applications to be debugged, wherein, described HTTP request is the request for asking to carry out access to netwoks, and described mobile applications to be debugged runs on mobile device;
Judging unit, for judging whether comprise default URL(uniform resource locator) in described HTTP request, wherein, described default URL(uniform resource locator) is the address showing abnormal webpage in described mobile applications to be debugged; And
Transmitting element, for when judging to comprise described default URL(uniform resource locator) in described HTTP request, first http response bag is returned to described mobile applications to be debugged show, wherein, described first http response bag is pre-stored within local storage region.
7. mobile applications debugging apparatus according to claim 6, is characterized in that, described judging unit comprises:
First acquisition module, for obtaining the URL(uniform resource locator) in described HTTP request;
Comparison module, for comparing the URL(uniform resource locator) in described HTTP request with described default URL(uniform resource locator);
Judge module, time identical with described default URL(uniform resource locator) for the URL(uniform resource locator) in described HTTP request, judge in described HTTP request, to comprise described default URL(uniform resource locator), when URL(uniform resource locator) in described HTTP request is not identical with described default URL(uniform resource locator), judge in described HTTP request, not comprise described default URL(uniform resource locator).
8. mobile applications debugging apparatus according to claim 6, is characterized in that, described device also comprises:
Second acquisition unit, for obtaining the second http response bag according to described HTTP request from the webserver; And
Memory cell, for storing described second http response bag and described HTTP request.
9. mobile applications debugging apparatus according to claim 6, is characterized in that, multiple first http response bag drawn together by described first http response handbag, and described transmitting element comprises:
Search module, for searching the first http response bag corresponding with described default URL(uniform resource locator) from described multiple first http response bag; And
Sending module, shows for the first http response bag corresponding with described default URL(uniform resource locator) is returned to described mobile applications to be debugged.
10. mobile applications debugging apparatus according to claim 9, is characterized in that, described in search module and comprise:
First obtains submodule, for obtaining described default URL(uniform resource locator);
Judging submodule, for traveling through the URL(uniform resource locator) corresponding with described multiple first http response bag, judging whether to there is the URL(uniform resource locator) identical with described default URL(uniform resource locator); And
Second obtains submodule, when judging to there is the URL(uniform resource locator) identical with described default URL(uniform resource locator), obtain the first http response bag corresponding to the URL(uniform resource locator) identical with described default URL(uniform resource locator) as the first http response bag corresponding with described default URL(uniform resource locator).
CN201410768103.2A 2014-12-11 2014-12-11 Debug method and debug device for mobile application programs Pending CN104486333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410768103.2A CN104486333A (en) 2014-12-11 2014-12-11 Debug method and debug device for mobile application programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410768103.2A CN104486333A (en) 2014-12-11 2014-12-11 Debug method and debug device for mobile application programs

Publications (1)

Publication Number Publication Date
CN104486333A true CN104486333A (en) 2015-04-01

Family

ID=52760837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410768103.2A Pending CN104486333A (en) 2014-12-11 2014-12-11 Debug method and debug device for mobile application programs

Country Status (1)

Country Link
CN (1) CN104486333A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978277A (en) * 2015-07-30 2015-10-14 北京百度网讯科技有限公司 Method for debugging page, terminal and server
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
CN108363662A (en) * 2018-01-29 2018-08-03 深圳壹账通智能科技有限公司 A kind of applied program testing method, storage medium and terminal device
CN109032705A (en) * 2018-07-05 2018-12-18 腾讯科技(深圳)有限公司 Execution method, apparatus, electronic equipment and the readable storage medium storing program for executing of application program
CN105357323B (en) * 2015-12-11 2019-01-25 北京京东尚科信息技术有限公司 HTML5 page adjustment method and device in a kind of APP

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090082008A1 (en) * 2007-09-21 2009-03-26 Per Thorell Mobile Phone Code Debugging Method and Apparatus
CN103368783A (en) * 2012-03-27 2013-10-23 阿里巴巴集团控股有限公司 Method, system and equipment for network communication process monitoring

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090082008A1 (en) * 2007-09-21 2009-03-26 Per Thorell Mobile Phone Code Debugging Method and Apparatus
CN103368783A (en) * 2012-03-27 2013-10-23 阿里巴巴集团控股有限公司 Method, system and equipment for network communication process monitoring

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZSHQ280017423: "《Android手机Fiddler真机抓包》", 15 May 2013 *
小坦克: "《Fiddler教程》", 7 July 2012 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978277A (en) * 2015-07-30 2015-10-14 北京百度网讯科技有限公司 Method for debugging page, terminal and server
CN105357323B (en) * 2015-12-11 2019-01-25 北京京东尚科信息技术有限公司 HTML5 page adjustment method and device in a kind of APP
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
CN106126420B (en) * 2016-06-21 2018-12-18 北京小米移动软件有限公司 Application program adjustment method and device
CN108363662A (en) * 2018-01-29 2018-08-03 深圳壹账通智能科技有限公司 A kind of applied program testing method, storage medium and terminal device
CN109032705A (en) * 2018-07-05 2018-12-18 腾讯科技(深圳)有限公司 Execution method, apparatus, electronic equipment and the readable storage medium storing program for executing of application program
CN109032705B (en) * 2018-07-05 2022-02-25 腾讯科技(深圳)有限公司 Application program execution method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN103942225B (en) A kind of resource transfer method, client and the system of mixed type applications client
US8543713B2 (en) Computing environment arranged to support predetermined URL patterns
CN104486333A (en) Debug method and debug device for mobile application programs
CN106503134A (en) Browser jumps to the method for data synchronization and device of application program
WO2022242023A1 (en) Resource acquisition method and system, webvpn proxy server and server
CN104750471A (en) WEB page performance detection and analysis plug-in and method based on browser
US10402464B2 (en) Methods and apparatuses for opening a webpage, invoking a client, and creating a light application
EP2648388B1 (en) Method, system, and device for displaying page
CN104579830B (en) service monitoring method and device
WO2014004926A1 (en) Methods and systems for secure in-network insertion of web content and web services
CN109213952A (en) Page access processing method, device, computer equipment and storage medium
CN110855766A (en) Method and device for accessing Web resources and proxy server
CN102662838B (en) The adjustment method of Flash and system in a kind of browser
CN109902247A (en) A kind of method, apparatus and electronic equipment of page rendering
US8271472B2 (en) System and method for exposing both portal and web content within a single search collection
CN104040538A (en) Internet application interaction method, device and system
CN104731817B (en) A kind of webpage exhibiting method and device
US9866614B2 (en) Methods for website version control using bucket cookies
US20080162687A1 (en) Data acquisition system and method
CN114915565B (en) Network debugging method and system
US9191392B2 (en) Security configuration
JP5737249B2 (en) Load simulation apparatus, simulation apparatus, load simulation method, simulation method, and program
CN105721251B (en) A kind of method and system of configurable test pile service
CN102866904A (en) Methods for loading and transmitting installation-free ActiveX plug-in, device and system
CN111241370B (en) Method, device and storage medium for crawling content in distributed manner

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150401

RJ01 Rejection of invention patent application after publication