CN108132973A - Loading method and device, the computer readable storage medium of WEB jump page - Google Patents
Loading method and device, the computer readable storage medium of WEB jump page Download PDFInfo
- Publication number
- CN108132973A CN108132973A CN201711278674.8A CN201711278674A CN108132973A CN 108132973 A CN108132973 A CN 108132973A CN 201711278674 A CN201711278674 A CN 201711278674A CN 108132973 A CN108132973 A CN 108132973A
- Authority
- CN
- China
- Prior art keywords
- web
- server
- jump page
- client side
- web client
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application provides a kind of loading method of WEB jump page, and this method can include:The HTTP request message that WEB client side is sent is received, the HTTP request message carries the user information for WEB login pages, and the user information is authenticated;When user information authentication success, the address of the jump page of the WEB login pages after write-in certification is successful in the first preset field of http response message;The http response message is returned to the WEB client side, so that the WEB client side reads the address included in first preset field, and using the address read as request path, the content of the jump page is asked to the server-side;The content of the jump page is returned to the WEB client side, so that the WEB client side is loaded into the content.Pass through the technical solution of the application, it is possible to reduce WEB client side is when obtaining jump page address and the interaction times of server-side, reduction user wait for the time of loading after the authentication has been successful.
Description
Technical field
This application involves communication technique field more particularly to a kind of loading methods of WEB jump page and device, computer
Readable storage medium storing program for executing.
Background technology
In the development process of WEB page, when being related to permission control, record behavior, trafficking in property when operations, all need
Authentication is carried out to the user of current operation, to ensure the safety of operation.WEB login pages provide authentication
Interface, so that user inputs the user informations such as user name, password in the WEB login pages;WEB client side again believes the user
Breath is sent to server-side, to be verified by server-side to the user information.After the authentication has been successful, server-side and WEB client side
Between will be interacted by the way of " 302 redirect " so that WEB client side was finally loaded into WEB login pages redirects page
Face.However, during jump page is loaded into using " 302 redirect ", must be carried out between WEB client side and server-side more
Secondary interaction, leads to inefficiency;Especially in network congestion, the time for being loaded into jump page is longer, and user experience is poor.
Invention content
In view of this, the application provides a kind of loading method and device, computer-readable storage medium of WEB jump page
Matter, it is possible to reduce interaction times when being loaded into jump page between WEB client side and server-side, so as to improve the load of jump page
Enter efficiency, reduce period of reservation of number, promote user experience.
To achieve the above object, it is as follows to provide technical solution by the application:
According to the first aspect of the application, it is proposed that a kind of loading method of WEB jump page, applied to WEB client side,
The method includes:
HTTP request message is sent to server-side, so that the needle that HTTP request message described in the server side authentication carries
To the user information of WEB login pages;
Receive the http response message that the server-side returns;
When user information authentication success, the ground included in the first preset field of the http response message is read
Location, and using the address read as request path, the content of the jump page is asked to the server-side;Described first is pre-
If field is for the address of the jump page of the WEB login pages after authentication storage success;
It is loaded into the content for the jump page that the server-side returns.
According to the second aspect of the application, it is proposed that a kind of loading method of WEB jump page, applied to server-side, institute
The method of stating includes:
The HTTP request message that WEB client side is sent is received, the HTTP request message is carried for WEB login pages
User information, and the user information is authenticated;
When user information authentication success, after certification success is written in the first preset field of http response message
The address of the jump page of the WEB login pages;
The http response message is returned to the WEB client side, so that the WEB client side reads described first in advance
If the address included in field, and using the address read as request path, the jump page is asked to the server-side
Content;
The content of the jump page is returned to the WEB client side, so that the WEB client side is loaded into the content.
According to the third aspect of the application, it is proposed that a kind of device for loading of WEB jump page, applied to WEB client side,
Described device includes:
Transmitting element sends HTTP request message, so that HTTP request report described in the server side authentication to server-side
The user information for WEB login pages that text carries;
Receiving unit receives the http response message that the server-side returns;
First reading unit, when user information authentication success, read the http response message first is default
The address included in field, and using the address read as request path, the jump page is asked to the server-side
Content;The address of the jump page of the WEB login pages after first preset field succeeds for authentication storage;
Unit is loaded into, is loaded into the content for the jump page that the server-side returns.
According to the fourth aspect of the application, it is proposed that a kind of device for loading of WEB jump page, applied to server-side, institute
Device is stated to include:
Receiving unit receives the HTTP request message that WEB client side is sent, and the HTTP request message, which carries, to be directed to
The user information of WEB login pages, and the user information is authenticated;
First writing unit, when user information authentication success, in the first preset field of http response message
The address of the jump page of the WEB login pages after write-in certification success;
First returning unit returns to the http response message, so that the WEB client side to the WEB client side
The address included in first preset field is read, and using the address read as request path, it please to the server-side
Seek the content of the jump page;
Second returning unit returns to the content of the jump page to the WEB client side, so that the WEB client
End is loaded into the content.
According to the 5th of the application the aspect, it is proposed that a kind of computer readable storage medium is stored thereon with computer and refers to
It enables, is realized when which is executed by processor such as the step of any one of above-mentioned technical proposal the method.
By above technical scheme as it can be seen that the application by directly after the authentication has been successful server-side return http response message
It is middle addition jump page address so that WEB client side after the http response message is received, can directly using the address as
Request path to server-side request jump page content, so as to reduce WEB client side when obtaining jump page address and
The interaction times of server-side improve the follow-up efficiency for being loaded into jump page.Simultaneously, it is possible to reduce user is after the authentication has been successful etc.
Time to be loaded into, so as to improve user experience.
Description of the drawings
Fig. 1 is the flow chart that WEB client side is loaded into jump page in the relevant technologies.
Fig. 2 is a kind of flow chart of the loading method of WEB jump page shown in one exemplary embodiment of the application.
Fig. 3 is the flow chart of the loading method of another WEB jump page shown in one exemplary embodiment of the application.
Fig. 4 is the flow chart of the loading method of another WEB jump page shown in one exemplary embodiment of the application.
Fig. 5 is that a kind of structure of electronic equipment based on WEB client side side shown in one exemplary embodiment of the application is shown
It is intended to.
Fig. 6 is a kind of block diagram of the device for loading of WEB jump page shown in one exemplary embodiment of the application.
Fig. 7 is a kind of structural representation of electronic equipment based on service end side shown in one exemplary embodiment of the application
Figure.
Fig. 8 is the block diagram of the device for loading of another WEB jump page shown in one exemplary embodiment of the application.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application.
It is also intended in the application and " one kind " of singulative used in the attached claims, " described " and "the" including majority
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Fig. 1 is the flow chart that WEB client side is loaded into jump page in the relevant technologies.As shown in Figure 1, the jump procedure can be with
Include the following steps:
Step 102, WEB client side obtains user information.
Wherein, user carry out permission control, record behavior, trafficking in property when operations when, need carry out authentication with
Ensure the safety of operation.Specifically, user can input the user informations such as user name, password in WEB login pages, for
WEB client side (such as browser etc.) is sent to service end side and carries out authentication.
Step 104, WEB client side sends user information to server-side.
Wherein, WEB client side sends user authentication HTTP request (carrying user information) to server-side.
Step 106, server side authentication user information.
Wherein, server-side reads user information, and to the use after user authentication HTTP request is received from the request
Family information is authenticated.After the authentication has been successful, " 302 redirections (the follow-up step of reference will be used between server-side and WEB client side
Rapid 108-112) " mode interact so that WEB client side is finally loaded into the jump page of WEB login pages.
Step 108, server-side returns to http response message to WEB client side.
Wherein, server-side passes through unified XML (Extensible Markup Language, extensible markup language) mould
Plate form responds above-mentioned HTTP request.Specifically, Msg fields and Redirect fields are included in XML templates;Msg words
Section is for representing the information of authentification failure, if Msg fields are sky, illustrates certification success, otherwise authentification failure;Redirect words
Section for represent certification success after WEB client side subsequent operation, if Redirect fields for sky, illustrate not needing to subsequently
Jump page.
By taking certification success as an example, then the Msg fields for the http response message that server-side returns is empty, Redirect fields
Content for " obtain certification success after WEB login pages jump page address ".
Step 110, WEB client side asks the address of jump page to server-side.
Wherein, the example above is undertaken in, WEB client side is read after the http response message for receiving server-side return
Be empty (illustrating certification success) to Msg fields, then read the contents (i.e. subsequent operation) of Redirect fields for " acquisition certification into
The address of the jump page of WEB login pages after work(";So, WEB client side is according to the instructions of the Redirect fields, to clothes
The address of business end acquisition request jump page.
Step 112, server-side is to the address of the WEB client side return jump page.
Step 114, WEB client side is using the address received as request path, to the content of server-side request jump page.
Step 116, server-side is to the content of the WEB client side return jump page.
Step 118, WEB client side is loaded into the content of jump page.
So far, certification and the jump procedure of WEB login pages are completed.
As it can be seen that in the related art, using " 302 redirect ", this existing general redirects mode to realize that WEB is logged in
Redirecting after page certification success, due to the standard of " 302 redirect " for HTTP so that developer is without additionally write program
To complete redirecting for WEB login pages, but " 302 redirect " can directly be used to complete redirecting for WEB login pages, from
And reduce the workload of developer.However, when using " 302 redirect ", WEB client side is in the address for obtaining jump page
During, it needs to be interacted (step 104-112) twice with server-side, leads to inefficiency;Especially in network congestion
When, the time for being loaded into jump page is longer, and user experience is poor.
Therefore, the application is improved by way of the address to obtaining jump page, to solve to deposit in the relevant technologies
Above-mentioned technical problem.It is described in detail with reference to embodiment.
Fig. 2 is referred to, Fig. 2 is a kind of loading method of WEB jump page shown in one exemplary embodiment of the application
Flow chart, this method are applied to WEB client side, may comprise steps of:
Step 202, HTTP request message is sent to server-side, so that HTTP request message described in the server side authentication
The user information for WEB login pages carried.
Step 204, the http response message that the server-side returns is received.
Step 206, when user information authentication success, in the first preset field for reading the http response message
Comprising address, and using the address read as request path, the content of the jump page is asked to the server-side.
In the present embodiment, the WEB login pages redirects after first preset field succeeds for authentication storage
The address of the page.
Step 208, it is loaded into the content for the jump page that the server-side returns.
In the present embodiment, by directly after the authentication has been successful server-side return http response message in addition redirect page
The address in face so that WEB client side can be request path to clothes directly using the address after the http response message is received
It is engaged in the content of end request jump page, so as to reduce WEB client side when obtaining jump page address and the interaction of server-side
Number improves the follow-up efficiency for being loaded into jump page.Simultaneously, it is possible to reduce user wait for after the authentication has been successful loading when
Between, so as to improve user experience.
In the present embodiment, WEB client side can send the HTTP request message by Ajax modes;Based on the transmission
Mode when the user information authentication fails, can read the second preset field (described second of the http response message
Preset field is for storing the failure description information for authentification failure) in the failure description information that includes, and stepped in the WEB
The failure description information that Dynamic Announce is read in the record page.The interaction of data is carried out by Ajax modes, can to avoid
WEB login pages must be refreshed during authentification failure, and (on the one hand, refreshing WEB page causes WEB client side needs again please to server-side
WEB login pages are sought, increase the time of data interaction and user's waiting;On the other hand, refreshing WEB page causes user defeated
The user information entered is emptied so that user can not be multiplexed the user information of input during authentification failure), so as to effectively subtract
The time of data interaction and user's waiting is lacked, and user can answer the user information of input in authentification failure
With, and then improve user experience.
Specifically, it can judge whether certification succeeds in the following manner:Determine in the http response message that second is pre-
If whether field is empty;When second preset field is empty, judgement certification success.
Correspondingly, Fig. 3 is the stream of the loading method of another WEB jump page shown in one exemplary embodiment of the application
Cheng Tu, this method are applied to server-side, may comprise steps of:
Step 302, the HTTP request message that WEB client side is sent is received, the HTTP request message is carried for WEB
The user information of login page, and the user information is authenticated.
Step 304, it when user information authentication success, is written and recognizes in the first preset field of http response message
The address of the jump page of the WEB login pages after demonstrate,proving successfully.
Step 306, the http response message is returned to the WEB client side, so that the WEB client side reads institute
The address included in the first preset field is stated, and using the address read as request path, to described in server-side request
The content of jump page.
Step 308, the content of the jump page is returned to the WEB client side, so that the WEB client side is loaded into
The content.
In the present embodiment, the HTTP request message can be sent by the WEB client side by Ajax modes.Based on this
Sending method when the user information authentication fails, can generate the failure description information for authentification failure, and by described in
The second preset field of the http response message is written in failure description information, so that the WEB client side is receiving
After stating http response message, reading and the description information that fails described in Dynamic Announce in the WEB login pages.
By above technical scheme as it can be seen that the application by directly after the authentication has been successful server-side return http response message
It is middle addition jump page address so that WEB client side after the http response message is received, can directly using the address as
Request path to server-side request jump page content, so as to reduce WEB client side when obtaining jump page address and
The interaction times of server-side improve the follow-up efficiency for being loaded into jump page.Simultaneously, it is possible to reduce user is after the authentication has been successful etc.
Time to be loaded into, so as to improve user experience.
In order to make it easy to understand, with reference to the interactive process between WEB client side and server-side, to the technical side of the application
Case is described in detail.
Fig. 4 is referred to, Fig. 4 is the loading method of another WEB jump page shown in one exemplary embodiment of the application
Flow chart, this method may comprise steps of:
Step 402, WEB client side obtains user information.
Step 404, WEB client side sends the HTTP request message for carrying user information by Ajax modes to server-side.
In the present embodiment, user can input the user informations such as user name, password in WEB login pages, then by WEB
Client carries user information by Ajax modes and asks user authentication to server-side.
Step 406, server side authentication user information.
In the present embodiment, server-side can according to database (for recording the correspondence of username and password) come pair
The user information received is authenticated.Certainly, server-side can also carry out certification user information by other means, and the application is simultaneously
It is limited not to this.
Step 408, when the authentication is successful, WEB after write-in certification is successful in the first preset field of http response message
The address of the jump page of login page.
Step 410, server-side returns to http response message.
In the present embodiment, after certification success, the side of " 302 redirect " is not used between server-side and WEB client side
Formula interacts, but directly in the first preset field (for the ground of authentication storage jump page of WEB login pages after successful
Location) in write-in certification success after jump page address, so as to remove WEB client side to the behaviour of server-side request address
Make, improve the efficiency for obtaining address.
For example, the Redirect fields in XML templates can be redefined using as the first preset field:
The address of the jump page of WEB login pages after Redirect fields succeed for authentication storage;If Redirect fields are sky,
Then explanation does not subsequently need to jump page.Specifically, URI (UniformResource can be used in the content in Redirect fields
Identifier, uniform resource identifier) form.Meanwhile Msg fields are directed to the failure description information of authentification failure for storage
(for example, can be " user name is not present ", " password mistake " etc.), using as the second preset field.
Based on above-mentioned definition mode, WEB client side is first read after the http response message for receiving server-side return
Msg fields determine whether Msg fields are empty;When Msg fields are empty, judgement certification success.So, then Redirect is read
Address in field, to perform the operation of the content of subsequent request jump page.
In the present embodiment, when user information authentication fails, based on sending HTTP request report above by Ajax modes
The mode of text, can read the failure description information included in Msg fields, and Dynamic Announce is read in WEB login pages
Failure description information.The interaction of data is carried out by Ajax modes, can be stepped on to avoid WEB must be refreshed in authentification failure
Recording the page, (on the one hand, refreshing WEB page causes WEB client side to need to ask WEB login pages to server-side again, increases number
The time waited for according to interaction and user;On the other hand, refreshing WEB page causes user information input by user to be emptied, and makes
User can not be multiplexed the user information of input when obtaining authentification failure), so as to effectively reduce data interaction and user etc.
The time treated, and user can be multiplexed the user information of input in authentification failure, and then improve user experience.
It should be noted that it is above-mentioned using Redirect fields as the first preset field and using Msg fields as second
The mode of preset field can keep the uniform format of response text in certification success or failure.It is of course also possible to use
Other fields are limited as the first preset field or the second preset field, the application not to this.
Step 412, WEB client side is using the address read as request path.
Step 414, WEB client side asks the content of jump page to server-side.
Step 416, the content of the server-side return jump page.
Step 418, WEB client side is loaded into the content of jump page.
By above technical scheme as it can be seen that the application by directly after the authentication has been successful server-side return http response message
It is middle addition jump page address so that WEB client side after the http response message is received, can directly using the address as
Request path to server-side request jump page content, so as to reduce WEB client side when obtaining jump page address and
The interaction times of server-side (need the interactive process twice in step 104-112, and the application only needs step in the relevant technologies
An interactive process in 404-410), improve the follow-up efficiency for being loaded into jump page.Simultaneously, it is possible to reduce user is in certification
The time of loading is waited for after success, so as to improve user experience.
Fig. 5 is shown to be shown according to the structure based on WEB client side side electronic equipment of the exemplary embodiment of the application
It is intended to.Fig. 5 is please referred to, in hardware view, which includes processor 502, internal bus 504, network interface 506, interior
508 and nonvolatile memory 510 are deposited, is also possible that the required hardware of other business certainly.Processor 502 from it is non-easily
It reads in corresponding computer program to memory 508 and then runs in the property lost memory 510, WEB is formed on logic level and is jumped
The device for loading in blade-rotating face.Certainly, other than software realization mode, other realization methods are not precluded in the application, for example patrol
Collect mode of device or software and hardware combining etc., that is to say, that the executive agent of following process flow is not limited to each patrol
Collect unit or hardware or logical device.
Fig. 6 is please referred to, in Software Implementation, the device for loading of the WEB jump page can include transmitting element
601st, receiving unit 602, the first reading unit 603 and loading unit 604.Wherein:
Transmitting element 601 sends HTTP request message, so that HTTP request described in the server side authentication to server-side
The user information for WEB login pages that message carries;
Receiving unit 602 receives the http response message that the server-side returns;
First reading unit 603, when user information authentication success, read the http response message first is pre-
If the address included in field, and using the address read as request path, the jump page is asked to the server-side
Content;The address of the jump page of the WEB login pages after first preset field succeeds for authentication storage;
Unit 604 is loaded into, is loaded into the content for the jump page that the server-side returns.
Optionally,
The transmitting element 601 is specifically used for:The HTTP request message is sent by Ajax modes;
Described device further includes:Second reading unit 605 when the user information authentication fails, reads the HTTP
The failure description information included in second preset field of response message, second preset field are lost for storing for certification
The failure description information lost;Display unit, the failure description information that Dynamic Announce is read in the WEB login pages.
Optionally, whether judgement certification succeeds in the following manner:
Determine whether the second preset field is empty in the http response message;
When second preset field is empty, judgement certification success.
Fig. 7 shows the structural representation based on service end side electronic equipment of the exemplary embodiment according to the application
Figure.Fig. 7 is please referred to, in hardware view, which includes processor 702, internal bus 704, network interface 706, memory
708 and nonvolatile memory 710, it is also possible that the required hardware of other business certainly.Processor 702 is from non-volatile
Property memory 710 in read in corresponding computer program to memory 708 and then run, WEB is formed on logic level and is redirected
The device for loading of the page.Certainly, other than software realization mode, other realization methods, such as logic is not precluded in the application
Mode of device or software and hardware combining etc., that is to say, that the executive agent of following process flow is not limited to each logic
Unit or hardware or logical device.
Fig. 8 is please referred to, in Software Implementation, the device for loading of the WEB jump page can include receiving unit
801st, the first writing unit 802, the first returning unit 803 and the second returning unit 804.Wherein:
Receiving unit 801, receives the HTTP request message that WEB client side is sent, and the HTTP request message carries needle
It is authenticated to the user information of WEB login pages, and to the user information;
First writing unit 802, when user information authentication success, in the first preset field of http response message
The address of the jump page of the WEB login pages after middle write-in certification success;
First returning unit 803 returns to the http response message, so that the WEB client to the WEB client side
The address included in first preset field is read at end, and using the address read as request path, to the server-side
Ask the content of the jump page;
Second returning unit 804 returns to the content of the jump page to the WEB client side, so that the WEB is objective
Family end is loaded into the content.
Optionally, the HTTP request message is sent by the WEB client side by Ajax modes;Described device is also wrapped
It includes:
Generation unit 805, when the user information authentication fails, generation is for the failure description information of authentification failure;
The second preset field of the http response message is written in the failure description information by the second writing unit 806,
So that the WEB client side after the http response message is received, reads and is dynamically shown in the WEB login pages
Show the failure description information.
The function of each unit and the realization process of effect specifically refer to and step are corresponded in the above method in above device
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separate, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place or can also be distributed in multiple network element.It can be according to reality
It needs that some or all of module therein is selected to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory of instruction, above-metioned instruction can be by the processing of the above-mentioned device for loading based on WEB client side side WEB jump page
Device is performed to complete the above method, and this method can include:
HTTP request message is sent to server-side, so that the needle that HTTP request message described in the server side authentication carries
To the user information of WEB login pages;
Receive the http response message that the server-side returns;
When user information authentication success, the ground included in the first preset field of the http response message is read
Location, and using the address read as request path, the content of the jump page is asked to the server-side;Described first is pre-
If field is for the address of the jump page of the WEB login pages after authentication storage success;
It is loaded into the content for the jump page that the server-side returns.
In the exemplary embodiment, another non-transitorycomputer readable storage medium for including instruction is additionally provided,
Such as the memory including instruction, above-metioned instruction can be by the processing of the above-mentioned device for loading based on service end side WEB jump page
Device is performed to complete the above method, and this method can include:
The HTTP request message that WEB client side is sent is received, the HTTP request message is carried for WEB login pages
User information, and the user information is authenticated;
When user information authentication success, after certification success is written in the first preset field of http response message
The address of the jump page of the WEB login pages;
The http response message is returned to the WEB client side, so that the WEB client side reads described first in advance
If the address included in field, and using the address read as request path, the jump page is asked to the server-side
Content;
The content of the jump page is returned to the WEB client side, so that the WEB client side is loaded into the content.
Wherein, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-
ROM, tape, floppy disk and optical data storage devices etc., the application is limited not to this.
The foregoing is merely the preferred embodiment of the application, not limiting the application, all essences in the application
God and any modification, equivalent substitution, improvement and etc. within principle, done, should be included within the scope of the application protection.
Claims (11)
1. a kind of loading method of WEB jump page, which is characterized in that applied to WEB client side, the method includes:
HTTP request message is sent to server-side, so that HTTP request message carrying described in the server side authentication is directed to
The user information of WEB login pages;
Receive the http response message that the server-side returns;
When user information authentication success, the address included in the first preset field of the http response message is read,
And using the address read as request path, the content of the jump page is asked to the server-side;Described first is default
The address of the jump page of the WEB login pages after field succeeds for authentication storage;
It is loaded into the content for the jump page that the server-side returns.
2. according to the method described in claim 1, it is characterized in that,
It is described to send HTTP request message to server-side, including:The HTTP request message is sent by Ajax modes;
The method further includes:When the user information authentication fails, the second predetermined word of the http response message is read
The failure description information included in section, second preset field are directed to the failure description information of authentification failure for storing;
The failure description information that Dynamic Announce is read in the WEB login pages.
3. according to the method described in claim 2, it is characterized in that, judge whether certification succeeds in the following manner:
Determine whether the second preset field is empty in the http response message;
When second preset field is empty, judgement certification success.
4. a kind of loading method of WEB jump page, which is characterized in that applied to server-side, the method includes:
The HTTP request message that WEB client side is sent is received, the HTTP request message carries the use for WEB login pages
Family information, and the user information is authenticated;
When user information authentication success, be written in the first preset field of http response message described in after certification success
The address of the jump page of WEB login pages;
The http response message is returned to the WEB client side, so that the WEB client side reads first predetermined word
The address included in section, and using the address read as request path, asked in the jump page to the server-side
Hold;
The content of the jump page is returned to the WEB client side, so that the WEB client side is loaded into the content.
5. according to the method described in claim 4, it is characterized in that, the HTTP request message is passed through by the WEB client side
Ajax modes are sent;The method further includes:
When the user information authentication fails, generation is for the failure description information of authentification failure;
The failure description information is written to the second preset field of the http response message, so that the WEB client side
After the http response message is received, reading and the description information that fails described in Dynamic Announce in the WEB login pages.
6. a kind of device for loading of WEB jump page, which is characterized in that applied to WEB client side, described device includes:
Transmitting element sends HTTP request message, so that HTTP request message is taken described in the server side authentication to server-side
The user information for WEB login pages of band;
Receiving unit receives the http response message that the server-side returns;
First reading unit when user information authentication success, reads the first preset field of the http response message
In the address that includes, and using the address read as request path, the content of the jump page is asked to the server-side;
The address of the jump page of the WEB login pages after first preset field succeeds for authentication storage;
Unit is loaded into, is loaded into the content for the jump page that the server-side returns.
7. device according to claim 6, which is characterized in that
The transmitting element is specifically used for:The HTTP request message is sent by Ajax modes;
Described device further includes:Second reading unit when the user information authentication fails, reads the http response message
The second preset field in the failure description information that includes, second preset field is for storing the failure for authentification failure
Description information;Display unit, the failure description information that Dynamic Announce is read in the WEB login pages.
8. device according to claim 7, which is characterized in that judge whether certification succeeds in the following manner:
Determine whether the second preset field is empty in the http response message;
When second preset field is empty, judgement certification success.
9. a kind of device for loading of WEB jump page, which is characterized in that applied to server-side, described device includes:
Receiving unit receives the HTTP request message that WEB client side is sent, and the HTTP request message is carried to be stepped on for WEB
The user information of the page is recorded, and the user information is authenticated;
First writing unit when user information authentication success, is written in the first preset field of http response message
The address of the jump page of the WEB login pages after certification success;
First returning unit returns to the http response message to the WEB client side, so that the WEB client side is read
The address included in first preset field, and using the address read as request path, institute is asked to the server-side
State the content of jump page;
Second returning unit returns to the content of the jump page to the WEB client side, so that the WEB client side carries
Enter the content.
10. device according to claim 9, which is characterized in that the HTTP request message is passed through by the WEB client side
Ajax modes are sent;Described device further includes:
Generation unit, when the user information authentication fails, generation is for the failure description information of authentification failure;
The second preset field of the http response message is written in the failure description information by the second writing unit, so that
The WEB client side is read and in the WEB login pages after the http response message is received described in Dynamic Announce
Failure description information.
11. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
It is realized during execution such as the step of any one of claim 1-3 or claim 4-5 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711278674.8A CN108132973A (en) | 2017-12-06 | 2017-12-06 | Loading method and device, the computer readable storage medium of WEB jump page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711278674.8A CN108132973A (en) | 2017-12-06 | 2017-12-06 | Loading method and device, the computer readable storage medium of WEB jump page |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108132973A true CN108132973A (en) | 2018-06-08 |
Family
ID=62390029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711278674.8A Pending CN108132973A (en) | 2017-12-06 | 2017-12-06 | Loading method and device, the computer readable storage medium of WEB jump page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108132973A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109669736A (en) * | 2018-12-18 | 2019-04-23 | 北京城市网邻信息技术有限公司 | A kind of loading method of small routine, device, terminal device and storage medium |
CN110618768A (en) * | 2019-03-18 | 2019-12-27 | 北京无限光场科技有限公司 | Information presentation method and device |
CN111953761A (en) * | 2020-08-04 | 2020-11-17 | Oppo广东移动通信有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112711455A (en) * | 2020-12-31 | 2021-04-27 | 京东数字科技控股股份有限公司 | Page interaction method and device, electronic equipment and storage medium |
CN112751844A (en) * | 2020-12-28 | 2021-05-04 | 杭州迪普科技股份有限公司 | Portal authentication method and device and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020091798A1 (en) * | 2000-07-10 | 2002-07-11 | Joshi Vrinda S. | Providing data to applications from an access system |
US6668322B1 (en) * | 1999-08-05 | 2003-12-23 | Sun Microsystems, Inc. | Access management system and method employing secure credentials |
US20100122303A1 (en) * | 2008-11-12 | 2010-05-13 | Level 3 Communications, Llc | User authentication in a content delivery network |
CN102355449A (en) * | 2011-06-30 | 2012-02-15 | 深信服网络科技(深圳)有限公司 | Method, gateway and system for implicitly transmitting reorientation request |
CN103856540A (en) * | 2012-12-06 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Response processing method and device |
EP2838239A1 (en) * | 2013-08-13 | 2015-02-18 | News UK & Ireland Limited | Access control system |
CN105681476A (en) * | 2016-03-31 | 2016-06-15 | 郑州悉知信息科技股份有限公司 | Page skipping method, device and system |
-
2017
- 2017-12-06 CN CN201711278674.8A patent/CN108132973A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6668322B1 (en) * | 1999-08-05 | 2003-12-23 | Sun Microsystems, Inc. | Access management system and method employing secure credentials |
US20020091798A1 (en) * | 2000-07-10 | 2002-07-11 | Joshi Vrinda S. | Providing data to applications from an access system |
US20100122303A1 (en) * | 2008-11-12 | 2010-05-13 | Level 3 Communications, Llc | User authentication in a content delivery network |
CN102355449A (en) * | 2011-06-30 | 2012-02-15 | 深信服网络科技(深圳)有限公司 | Method, gateway and system for implicitly transmitting reorientation request |
CN103856540A (en) * | 2012-12-06 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Response processing method and device |
EP2838239A1 (en) * | 2013-08-13 | 2015-02-18 | News UK & Ireland Limited | Access control system |
CN105681476A (en) * | 2016-03-31 | 2016-06-15 | 郑州悉知信息科技股份有限公司 | Page skipping method, device and system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109669736A (en) * | 2018-12-18 | 2019-04-23 | 北京城市网邻信息技术有限公司 | A kind of loading method of small routine, device, terminal device and storage medium |
CN110618768A (en) * | 2019-03-18 | 2019-12-27 | 北京无限光场科技有限公司 | Information presentation method and device |
CN111953761A (en) * | 2020-08-04 | 2020-11-17 | Oppo广东移动通信有限公司 | Data processing method and device, electronic equipment and storage medium |
CN111953761B (en) * | 2020-08-04 | 2023-07-25 | Oppo广东移动通信有限公司 | Data processing method, device, electronic equipment and storage medium |
CN112751844A (en) * | 2020-12-28 | 2021-05-04 | 杭州迪普科技股份有限公司 | Portal authentication method and device and electronic equipment |
CN112711455A (en) * | 2020-12-31 | 2021-04-27 | 京东数字科技控股股份有限公司 | Page interaction method and device, electronic equipment and storage medium |
CN112711455B (en) * | 2020-12-31 | 2024-04-16 | 京东科技控股股份有限公司 | Page interaction method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108132973A (en) | Loading method and device, the computer readable storage medium of WEB jump page | |
US11307969B2 (en) | Methods for improved web application testing using remote headless browsers and devices thereof | |
CN104735066B (en) | A kind of single-point logging method of object web page application, device and system | |
CN110300133B (en) | Cross-domain data transmission method, device, equipment and storage medium | |
CN109656538A (en) | Generation method, device, system, equipment and the medium of application program | |
CN108733991A (en) | Web application access method and device, storage medium | |
CN104468592B (en) | Login method and login system | |
CN104270391B (en) | A kind of processing method and processing device of access request | |
CN113079164B (en) | Remote control method and device for bastion machine resources, storage medium and terminal equipment | |
CN105991518B (en) | Network access verifying method and device | |
CN106953831A (en) | A kind of authorization method of user resources, apparatus and system | |
CN108718337A (en) | Website account login, verification, verification information processing method, apparatus and system | |
CN104903863A (en) | Inversion-of-control component service models for virtual environments | |
US20100293604A1 (en) | Interactive authentication challenge | |
CN107196909A (en) | Invitation registration method and device | |
CN108600234A (en) | A kind of auth method, device and mobile terminal | |
CN109753530A (en) | A kind of data processing method and its device, medium, terminal | |
JP6736748B2 (en) | Computer-readable recording medium, system and method for performing authentication | |
CN107979577A (en) | A kind of method and apparatus of terminal authentication | |
CN105339928B (en) | Website server request re-routes | |
US10866711B1 (en) | Providing account information to applications | |
CN110177096A (en) | Client certificate method, apparatus, medium and calculating equipment | |
JP4333707B2 (en) | Session timeout time determination device, computer program, and application providing system | |
CN109062848A (en) | Purchasing management method, apparatus and bus platform based on ESB bus platform | |
CN108234388A (en) | A kind of webpage automatic authentication method and 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180608 |