CN107749808A - Simulate implementation method, the apparatus and system of request - Google Patents

Simulate implementation method, the apparatus and system of request Download PDF

Info

Publication number
CN107749808A
CN107749808A CN201711055626.2A CN201711055626A CN107749808A CN 107749808 A CN107749808 A CN 107749808A CN 201711055626 A CN201711055626 A CN 201711055626A CN 107749808 A CN107749808 A CN 107749808A
Authority
CN
China
Prior art keywords
network address
server
request
https
terminal
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
CN201711055626.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.)
CHINA ENTERPRISE POWER TECHNOLOGY Co.,Ltd.
Original Assignee
Beijing Car Wanjia 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 Car Wanjia Technology Co Ltd filed Critical Beijing Car Wanjia Technology Co Ltd
Priority to CN201711055626.2A priority Critical patent/CN107749808A/en
Publication of CN107749808A publication Critical patent/CN107749808A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A kind of implementation method of simulation request provided in an embodiment of the present invention, apparatus and system, are related to Internet technical field.When methods described receives the network address simulation request of user's triggering including terminal, certificate corresponding to the network address is obtained, then by calling default api interface, sends https to server and asks;Then the page info that the server asks to return in response to the https is shown.The network address certificate based on acquisition is only needed, calls api interface, simulation https requests is realized, simplifies development difficulty, save development cost, improve operational efficiency.

Description

Simulate implementation method, the apparatus and system of request
Technical field
The present invention relates to Internet technical field, in particular to a kind of implementation method for simulating request, device and is System.
Background technology
With the development of internet, https is commonly used, but lacks a kind of easy programmed method, passes through program mould Intend https requests, reach the purpose of system intercommunication, system testing.
The content of the invention
It is an object of the invention to provide a kind of implementation method for simulating request, apparatus and system, to improve above mentioned problem. To achieve these goals, the technical scheme that the present invention takes is as follows:
In a first aspect, the embodiments of the invention provide a kind of implementation method for simulating request, methods described includes:Terminal connects When receiving the network address simulation request of user's triggering, certificate corresponding to the network address is obtained, then by calling default api interface, Https requests are sent to server;Show the page info that the server asks to return in response to the https.
Second aspect, the embodiments of the invention provide a kind of implementation method for simulating request, methods described includes server When receiving terminal simulates request based on the network address for receiving user's triggering, certificate corresponding to the network address is obtained, then pass through calling Default api interface, the https requests of transmission;The page info in response to https requests is returned to the terminal, with The terminal is set to show the page info.
The third aspect, the embodiments of the invention provide a kind of implementation method for simulating request, methods described connects including terminal When receiving the network address simulation request of user's triggering, certificate corresponding to the network address is obtained, then by calling default api interface, Https requests are sent to server;The server returns to the page info in response to https requests to the terminal; The terminal shows the page info.
Fourth aspect, the embodiments of the invention provide a kind of realization device for simulating request, run on terminal, described device Including transmitting element and display unit.Transmitting element, when the network address simulation request of user's triggering is received for terminal, obtain institute Certificate corresponding to network address is stated, then by calling default api interface, https requests are sent to server.Display unit, it is used for Show the page info that the server asks to return in response to the https.
5th aspect, the embodiments of the invention provide a kind of realization device for simulating request, run on server, the dress Put including receiving unit and returning unit.Receiving unit, please based on the network address simulation for receiving user's triggering for receiving terminal When asking, certificate corresponding to the network address is obtained, then by calling default api interface, the https requests of transmission.Returning unit, For returning to the page info in response to https requests to the terminal, so that the terminal shows the page info.
6th aspect, the embodiments of the invention provide it is a kind of simulate request realize system, the system include terminal and Server.Methods described includes terminal, when the network address for receiving user's triggering simulates request, obtains corresponding to the network address Certificate, then by calling default api interface, https requests are sent to server.The server, for the terminal Return to the page info in response to https requests.The terminal, it is additionally operable to show the page info.
A kind of implementation method of simulation request provided in an embodiment of the present invention, apparatus and system, terminal receive user and touched During the network address simulation request of hair, certificate corresponding to the network address is obtained, then by calling default api interface, sent out to server Https is sent to ask;Then the page info that the server asks to return in response to the https is shown.Only need to be based on obtaining The network address certificate taken, api interface is called, realize simulation https requests, simplify development difficulty, save development cost, improve operation Efficiency.
Other features and advantages of the present invention will illustrate in subsequent specification, also, partly become from specification It is clear that or by implementing understanding of the embodiment of the present invention.The purpose of the present invention and other advantages can be by saying what is write Specifically noted structure is realized and obtained in bright book, claims and accompanying drawing.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the application environment of the embodiment of the present invention;
Fig. 2 is the structured flowchart of terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of implementation method for simulating request provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the implementation method of another simulation request provided in an embodiment of the present invention;
Fig. 5 is the timing diagram for realizing system of simulation request provided in an embodiment of the present invention;
Fig. 6 is a kind of structured flowchart of realization device for simulating request provided in an embodiment of the present invention;
Fig. 7 is the structured flowchart of the realization device of another simulation request provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.The present invention implementation being generally described and illustrated herein in the accompanying drawings The component of example can be configured to arrange and design with a variety of.Therefore, the reality of the invention to providing in the accompanying drawings below The detailed description for applying example is not intended to limit the scope of claimed invention, but is merely representative of the selected implementation of the present invention Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made Every other embodiment, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
The following each embodiments of the present invention can be applied in environment as shown in Figure 1 unless otherwise instructed, as shown in figure 1, Simulation request realizes that system includes terminal 100 and server 210.Terminal 100 is connected by network 200 with server 210.Institute It can be wired or wireless network to state network 200.In the embodiment of the present invention, terminal 100 and server 210 can pass through communication network Network is directly connected to.Terminal 100, server 210 can be in Wi-Fi (Wireless Fidelity) network, 2G/3G/4G networks or LANs Establish communication connection.
Terminal 100, when the network address for receiving user's triggering simulates request, certificate corresponding to the network address is obtained, then By calling default api interface, https requests are sent to server 210.
The server 210, for returning to the page info in response to https requests to the terminal 100.
The terminal 100, it is additionally operable to show the page info.
Referring to Fig. 2, show a kind of structured flowchart for the terminal 100 that can be applied in the embodiment of the present invention.Terminal 100 Memory 102, storage control 104, one or more (one is only shown in Fig. 2) processors 106, Peripheral Interface can be included 108th, input/output module 110, audio-frequency module 112, display module 114, radio-frequency module 116 and the realization device of simulation request.
Memory 102, storage control 104, processor 106, Peripheral Interface 108, input/output module 110, audio mould Directly or indirectly electrically connected between block 112, display module 114,116 each element of radio-frequency module, with realize the transmission of data or Interaction.For example, electrical connection can be realized by one or more communication bus or signal bus between these elements.Simulation request Implementation method include at least one to be stored in memory 102 in the form of software or firmware (firmware) respectively Software function module, such as the software function module or computer program that the realization device for simulating request includes.
Memory 102 can store various software programs and module, such as the simulation request that the embodiment of the present application provides Programmed instruction/module corresponding to implementation method and device.Processor 106 is by running the software journey of storage in the memory 102 Sequence and module, so as to perform various function application and data processing, that is, realize what the simulation in the embodiment of the present application was asked Implementation method.
Memory 102 can include but is not limited to random access memory (Random Access Memory, RAM), only Read memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Processor 106 can be a kind of IC chip, have signal handling capacity.Above-mentioned processor can be general Processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), application specific integrated circuit (ASIC), ready-made programmable Gate array (FPGA) either other PLDs, discrete gate or transistor logic, discrete hardware components.It can To realize or perform disclosed each method, step and the logic diagram in the embodiment of the present application.General processor can be micro- Processor or the processor can also be any conventional processors etc..
Various input/output devices are coupled to processor 106 and memory 102 by the Peripheral Interface 108.At some In embodiment, Peripheral Interface 108, processor 106 and storage control 104 can be realized in one single chip.Other one In a little examples, they can be realized by independent chip respectively.
Input/output module 110 is used to be supplied to user input data to realize interacting for user and terminal 100.The input Output module 110 may be, but not limited to, mouse and keyboard etc..
Audio-frequency module 112 provides a user COBBAIF, and it may include one or more microphones, one or more raises Sound device and voicefrequency circuit.
Display module 114 provides an interactive interface (such as user interface) or used between terminal 100 and user Referred in display image data to user.In the present embodiment, the display module 114 can be that liquid crystal display or touch-control show Show device.If touch control display, it can be the capacitance type touch control screen or resistance type touch control screen for supporting single-point and multi-point touch operation Deng.Single-point and multi-point touch operation is supported to refer to that touch control display can sense one or more positions on the touch control display Place is put with caused touch control operation, and the touch control operation that this is sensed transfers to processor 106 to be calculated and handled.
Radio-frequency module 116 is used to receiving and sending electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, so that with Communication network or other equipment are communicated.
It is appreciated that the structure shown in Fig. 2 is only to illustrate, terminal 100 may also include more more or less than shown in Fig. 2 Component, or there is the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can use hardware, software or its combination Realize.
In the embodiment of the present invention, the terminal 100 can be PC (personal computer) computer, tablet personal computer, hand The terminal devices such as machine, notebook computer, intelligent television, set top box, car-mounted terminal.Client is installed in terminal 100, the client End can be that browser can also be third-party application software, corresponding with server (Server) end.
Referring to Fig. 3, the embodiments of the invention provide a kind of implementation method for simulating request, methods described includes step S300 and step S310.
Step S300:When terminal receives the network address simulation request of user's triggering, certificate corresponding to the network address is obtained, then By calling default api interface, https requests are sent to server.
When user needs to enter some application system or some webpage, the network address simulation that terminal receives user's triggering please When asking, certificate corresponding to the network address is obtained.
In the present embodiment, the method logged in using may be, but not limited to, JAVA language realization simulation.
Based on step S300, further, when receiving the network address simulation request of user's triggering, it is corresponding to download the network address Certificate;Certificate corresponding to the network address is loaded into local certificate repository;The network address is obtained from the local certificate repository Corresponding certificate.
Step S310:Show the page info that the server asks to return in response to the https.
It is described by calling default api interface as a kind of embodiment, send https requests, bag to server Include:
By calling default api interface, the first request header for being connected and asking the https with server is created Information, which is arranged to POST modes, asks;
The required parameter for obtaining the inlet flow of first connection and being asked to the server transmission POST modes;
Correspondingly, the page info that the display server asks to return in response to the https, including:
The output stream of first connection is obtained, parses the return that the server is asked in response to the POST modes Page info is simultaneously shown.
It is described by calling default api interface as another embodiment, https requests are sent to server, also Including:
By calling default api interface, the second request header for being connected and asking the https with server is created Information, which is arranged to GET modes, asks;
The required parameter for obtaining the inlet flow of second connection and being asked to the server transmission GET modes;
Correspondingly, the page info that the display server asks to return in response to the https, including:
The output stream of second connection is obtained, parses the return that the server is asked in response to the GET modes Page info is simultaneously shown.
A kind of implementation method for simulating request provided in an embodiment of the present invention, terminal receive the network address simulation of user's triggering During request, certificate corresponding to the network address is obtained, then by calling default api interface, https requests are sent to server; Then the page info that the server asks to return in response to the https is shown.The network address certificate based on acquisition is only needed, Api interface is called, simulation https requests is realized, simplifies development difficulty, save development cost, improve operational efficiency.
Referring to Fig. 4, the embodiments of the invention provide a kind of implementation method for simulating request, methods described includes:
Step S400:When server receiving terminal simulates request based on the network address for receiving user's triggering, the net is obtained Certificate corresponding to location, then by calling default api interface, the https requests of transmission;
Step S410:The page info in response to https requests is returned to the terminal, so that the terminal is shown The page info.
A kind of implementation method for simulating request provided in an embodiment of the present invention, server receiving terminal are based on receiving user During the network address simulation request of triggering, certificate corresponding to the network address is obtained, then by calling default api interface, transmission Https is asked;The page info in response to https requests is returned to the terminal, so that the terminal shows the page Face information.The network address certificate based on acquisition is only needed, calls api interface, simulation https requests is realized, simplifies development difficulty, section About development cost, improve operational efficiency.
Referring to Fig. 5, the embodiments of the invention provide a kind of implementation method for simulating request, the reality applied to simulation request Existing system, methods described include:
Step S500:When terminal receives the network address simulation request of user's triggering, certificate corresponding to the network address is obtained, then By calling default api interface, https requests are sent to server;
Step S510:The server returns to the page info in response to https requests to the terminal;
Step S520:The terminal shows the page info.
A kind of implementation method for simulating request provided in an embodiment of the present invention, it is only necessary to the network address certificate based on acquisition, adjust With api interface, simulation https requests are realized, simplifies development difficulty, saves development cost, improve operational efficiency.
Referring to Fig. 6, the embodiments of the invention provide a kind of realization device 600 for simulating request, terminal is run on, it is described Device 600 can include transmitting element 610 and display unit 620.
Transmitting element 610, when the network address simulation request of user's triggering is received for terminal, obtain corresponding to the network address Certificate, then by calling default api interface, https requests are sent to server.
Transmitting element 610 can include transmission sub-unit 611.
Transmission sub-unit 611, when the network address for receiving user's triggering simulates request, download and demonstrate,proved corresponding to the network address Book;Certificate corresponding to the network address is loaded into local certificate repository;It is corresponding that the network address is obtained from the local certificate repository Certificate.
Transmitting element 610 can also include first and call subelement 612.
First calls subelement 612, for by calling default api interface, establishment be connected with the first of server and The https request header informations asked are arranged into POST modes to ask;Obtain the inlet flow of first connection and to institute State server and send the required parameter that the POST modes are asked.
Display unit 620, the page info for asking to return in response to the https for showing the server.
Display unit 620 can include the first display subelement 621.
First display subelement 621, for obtaining the output stream of first connection, the server is parsed in response to institute State the page info for the return that POST modes are asked and display.
Transmitting element 610 can also include second and call subelement 613.
Second calls subelement 613, for by calling default api interface, establishment be connected with the second of server and The https request header informations asked are arranged into GET modes to ask;Obtain the inlet flow of second connection and to described Server sends the required parameter that the GET modes are asked;
Display unit 620 can also include the second display subelement 622.
Second display subelement 622, for obtaining the output stream of second connection, the server is parsed in response to institute State the page info for the return that GET modes are asked and display.
Above each unit can be that now, above-mentioned each unit can be stored in memory 102 by software code realization. Above each unit can equally be realized by hardware such as IC chip.
The realization device 600 of simulation request provided in an embodiment of the present invention, its realization principle and caused technique effect and Preceding method embodiment is identical, and to briefly describe, device embodiment part does not refer to part, refers in preceding method embodiment Corresponding contents.
Referring to Fig. 7, a kind of realization device 700 for simulation request that present example provides, runs on server, it is described Device 700 can include receiving unit 710 and returning unit 720.
Receiving unit 710, when simulating request based on the network address for receiving user's triggering for receiving terminal, obtain the net Certificate corresponding to location, then by calling default api interface, the https requests of transmission.
Returning unit 720, for returning to the page info in response to https requests to the terminal, so that described Terminal shows the page info.
Above each unit can be that now, above-mentioned each unit can be stored in memory 102 by software code realization. Above each unit can equally be realized by hardware such as IC chip.
The realization device 700 of simulation request provided in an embodiment of the present invention, its realization principle and caused technique effect and Preceding method embodiment is identical, and to briefly describe, device embodiment part does not refer to part, refers in preceding method embodiment Corresponding contents.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can also pass through Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing Show the device of multiple embodiments according to the present invention, method and computer program product architectural framework in the cards, Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code Part, a part for the module, program segment or code include one or more and are used to realize holding for defined logic function Row instruction.It should also be noted that at some as in the implementation replaced, the function that is marked in square frame can also with different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially perform substantially in parallel, they are sometimes It can perform in the opposite order, this is depending on involved function.It is it is also noted that every in block diagram and/or flow chart The combination of individual square frame and block diagram and/or the square frame in flow chart, function or the special base of action as defined in performing can be used Realize, or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply between these entities or operation any this reality be present The relation or order on border.Moreover, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of elements not only include those key elements, but also including The other element being not expressly set out, or also include for this process, method, article or the intrinsic key element of equipment. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, other identical element also be present in article or equipment.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.

Claims (10)

1. a kind of implementation method for simulating request, it is characterised in that methods described includes:
When terminal receives the network address simulation request of user's triggering, certificate corresponding to the network address is obtained, then it is default by calling Api interface, to server send https request;
Show the page info that the server asks to return in response to the https.
2. according to the method for claim 1, it is characterised in that when the network address simulation for receiving user's triggering is asked, Certificate corresponding to the network address is obtained, including:
When receiving the network address simulation request of user's triggering, certificate corresponding to the network address is downloaded;
Certificate corresponding to the network address is loaded into local certificate repository;
Certificate corresponding to the network address is obtained from the local certificate repository.
3. according to the method for claim 2, it is characterised in that it is described by calling default api interface, sent out to server Https is sent to ask, including:
By calling default api interface, the first request header information for being connected and asking the https with server is created POST modes are arranged to ask;
The required parameter for obtaining the inlet flow of first connection and being asked to the server transmission POST modes;
Correspondingly, the page info that the display server asks to return in response to the https, including:
The output stream of first connection is obtained, parses the page for the return that the server is asked in response to the POST modes Information is simultaneously shown.
4. according to the method for claim 1, it is characterised in that it is described by calling default api interface, sent out to server Https is sent to ask, in addition to:
By calling default api interface, the second request header information for being connected and asking the https with server is created GET modes are arranged to ask;
The required parameter for obtaining the inlet flow of second connection and being asked to the server transmission GET modes;
Correspondingly, the page info that the display server asks to return in response to the https, including:
The output stream of second connection is obtained, parses the page for the return that the server is asked in response to the GET modes Information is simultaneously shown.
5. a kind of implementation method for simulating request, it is characterised in that methods described includes:
When server receiving terminal simulates request based on the network address for receiving user's triggering, certificate corresponding to the network address is obtained, Again by calling default api interface, the https requests of transmission;
The page info in response to https requests is returned to the terminal, so that the terminal shows the page info.
6. a kind of implementation method for simulating request, it is characterised in that methods described includes:
When terminal receives the network address simulation request of user's triggering, certificate corresponding to the network address is obtained, then it is default by calling Api interface, to server send https request;
The server returns to the page info in response to https requests to the terminal;
The terminal shows the page info.
7. a kind of realization device for simulating request, it is characterised in that run on terminal, described device includes:
Transmitting element, when the network address simulation request of user's triggering is received for terminal, certificate corresponding to the network address is obtained, then By calling default api interface, https requests are sent to server;
Display unit, the page info for asking to return in response to the https for showing the server.
8. device according to claim 7, it is characterised in that transmitting element includes:
Transmission sub-unit, when the network address for receiving user's triggering simulates request, download certificate corresponding to the network address;By institute Certificate corresponding to network address is stated to be loaded into local certificate repository;Certificate corresponding to the network address is obtained from the local certificate repository.
9. a kind of realization device for simulating request, it is characterised in that run on server, described device includes:
Receiving unit, when simulating request based on the network address for receiving user's triggering for receiving terminal, it is corresponding to obtain the network address Certificate, then by calling default api interface, the https requests of transmission;
Returning unit, for returning to the page info in response to https requests to the terminal, so that the terminal is shown The page info.
10. system is realized in a kind of simulation request, it is characterised in that the system includes terminal and server;
Terminal, when the network address for receiving user's triggering simulates request, certificate corresponding to the network address is obtained, then pass through calling Default api interface, https requests are sent to server;
The server, for returning to the page info in response to https requests to the terminal;
The terminal, it is additionally operable to show the page info.
CN201711055626.2A 2017-10-30 2017-10-30 Simulate implementation method, the apparatus and system of request Pending CN107749808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711055626.2A CN107749808A (en) 2017-10-30 2017-10-30 Simulate implementation method, the apparatus and system of request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711055626.2A CN107749808A (en) 2017-10-30 2017-10-30 Simulate implementation method, the apparatus and system of request

Publications (1)

Publication Number Publication Date
CN107749808A true CN107749808A (en) 2018-03-02

Family

ID=61254259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711055626.2A Pending CN107749808A (en) 2017-10-30 2017-10-30 Simulate implementation method, the apparatus and system of request

Country Status (1)

Country Link
CN (1) CN107749808A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166470A (en) * 2019-05-28 2019-08-23 北京奇安信科技有限公司 A kind of network service analogy method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1582042A (en) * 2003-08-15 2005-02-16 中兴通讯股份有限公司 Analogue request position information system and method
CN102014164A (en) * 2010-12-09 2011-04-13 向心力信息技术股份有限公司 Method of mobile access platform
CN102916958A (en) * 2012-10-15 2013-02-06 福建榕基软件股份有限公司 Method and system for realizing access encryption of mobile terminal browser
CN103929477A (en) * 2014-03-31 2014-07-16 国网山东省电力公司 Intersystem non-coupling integration simulation method and system based on Http
CN104572469A (en) * 2015-01-23 2015-04-29 广东能龙教育股份有限公司 Automatic interface testing method and system based on simulative http requests
CN106341470A (en) * 2016-08-31 2017-01-18 北京量科邦信息技术有限公司 Method for keeping conversation and grasping continuously-updated data of conversation
CN106919511A (en) * 2017-03-10 2017-07-04 携程计算机技术(上海)有限公司 The analogy method of application, simulation application and its operation method and simulation system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1582042A (en) * 2003-08-15 2005-02-16 中兴通讯股份有限公司 Analogue request position information system and method
CN102014164A (en) * 2010-12-09 2011-04-13 向心力信息技术股份有限公司 Method of mobile access platform
CN102916958A (en) * 2012-10-15 2013-02-06 福建榕基软件股份有限公司 Method and system for realizing access encryption of mobile terminal browser
CN103929477A (en) * 2014-03-31 2014-07-16 国网山东省电力公司 Intersystem non-coupling integration simulation method and system based on Http
CN104572469A (en) * 2015-01-23 2015-04-29 广东能龙教育股份有限公司 Automatic interface testing method and system based on simulative http requests
CN106341470A (en) * 2016-08-31 2017-01-18 北京量科邦信息技术有限公司 Method for keeping conversation and grasping continuously-updated data of conversation
CN106919511A (en) * 2017-03-10 2017-07-04 携程计算机技术(上海)有限公司 The analogy method of application, simulation application and its operation method and simulation system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CSDN博主WYDHAO123: "使用HttpClient4.3.1模拟Http请求与无信任证书访问Https", 《CSDN》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166470A (en) * 2019-05-28 2019-08-23 北京奇安信科技有限公司 A kind of network service analogy method and device
CN110166470B (en) * 2019-05-28 2022-07-19 奇安信科技集团股份有限公司 Network service simulation method and device

Similar Documents

Publication Publication Date Title
CN107122301A (en) Interface detection method and device
CN107844243A (en) Cloud tabletop touch implementation method and device
CN107818008A (en) page loading method and device
CN107295095A (en) The method and apparatus for pushing and showing advertisement
CN105701122A (en) Log collection method, apparatus and system
CN105874448A (en) Method and apparatus for outputting digital content
CN108717853A (en) A kind of man machine language's exchange method, device and storage medium
CN107509051A (en) Long-range control method, device, terminal and computer-readable recording medium
CN106161627A (en) Method and device for pushed information
CN106503111B (en) Webpage code-transferring method, device and client terminal
CN106798964A (en) Family expenses electrotherapy instrument system and electro-therapeutic apparatus control method
CN108038894A (en) Animation creation method, device, electronic equipment and computer-readable recording medium
CN106528163B (en) A kind of page switching method and device
CN107656866A (en) A kind of method, mobile terminal and computing device tested using fluency
CN108563668A (en) The method, apparatus and terminal device of the Hybrid page jump H5 pages
CN109240756A (en) A kind of method and device of dynamically load JavaScript module
CN103024730A (en) Application download method, terminal and server
CN107547288A (en) Simulate the method, apparatus and system logged in
CN107749808A (en) Simulate implementation method, the apparatus and system of request
CN109254781A (en) It is a kind of for installing the method and apparatus of application on a user device
CN107404383A (en) The generation method and device of digital signature
CN107330087A (en) Pagefile generation method and device
CN204721386U (en) The device of the micro-letter client of binding is realized based on Quick Response Code
CN115951973A (en) Model processing method and device, terminal device and storage medium
CN105867984A (en) Method, device and client for displaying task state in web page as well as mobile equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20200729

Address after: 100176 Daxing District City, Beijing economic and Technological Development Zone, West Road, Beijing, No. 1, building A, room 5, room A2-501, level 1

Applicant after: CHINA ENTERPRISE POWER TECHNOLOGY Co.,Ltd.

Address before: 100000 No. 8, No. 8, Hongda North Road, Beijing economic and Technological Development Zone, Beijing City, 5218-74

Applicant before: BEIJING CHEWANJIA TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20180302

RJ01 Rejection of invention patent application after publication