WO2017166297A1 - Wifi hotpot portal authentication method and device - Google Patents
Wifi hotpot portal authentication method and device Download PDFInfo
- Publication number
- WO2017166297A1 WO2017166297A1 PCT/CN2016/078341 CN2016078341W WO2017166297A1 WO 2017166297 A1 WO2017166297 A1 WO 2017166297A1 CN 2016078341 W CN2016078341 W CN 2016078341W WO 2017166297 A1 WO2017166297 A1 WO 2017166297A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- parameter
- portal authentication
- browser
- location information
- value
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
Definitions
- the embodiments of the present invention relate to communication technologies, and in particular, to a WiFi hotspot Portal authentication method and apparatus.
- Wireless Fidelity (WiFi) technology has been widely used due to its advantages of ease of use and high transmission rate.
- a Portal authentication process is: the user logs in to the browser, and the browser jumps to the authentication interface. The user enters the mobile phone number in the authentication interface, clicks the get verification code button, enters the verification code, and clicks the login button to complete the authentication.
- the network provided by these hotspots can only be used after authentication.
- the embodiment of the invention provides a WiFi hotspot Portal authentication method and device to improve the authentication efficiency.
- an embodiment of the present invention provides a WiFi hotspot Portal authentication method, where the method is applied to an electronic device, where the electronic device may be a mobile phone, a tablet, or other smart wearable device, and the electronic device is pre-installed with an operating system and Browser, the browser runs on the operating system, and the method includes:
- the WiFi hotspot When the electronic device needs to connect through the WiFi hotspot, the WiFi hotspot is first connected, then the browser is started, and the portal authentication request is sent to the WiFi hotspot to request access to the external network; after the WiFi hotspot receives the portal authentication request, the WiFi hotspot returns to the electronic device.
- the portal authentication webpage data corresponding to the portal authentication request; the electronic device loads the portal authentication webpage data through the browser, and determines the location information of the first parameter in the portal authentication webpage data, that is, the electronic device parses the portal authentication network
- the method of the page data automatically acquires the location information of the first parameter, and obtains the value of the first parameter, and associates the value of the first parameter with the location information of the first parameter; and sends the information associated with the location information of the first parameter.
- the value of a parameter is added to the WiFi hotspot, thereby completing the portal authentication of the WiFi hotspot, and in this process, the participation of the user is reduced, and the authentication efficiency is improved.
- launching the browser includes launching the browser in the foreground of the operating system or launching the browser in the background of the operating system.
- starting the browser includes: starting a browser in the foreground of the operating system; after loading the portal authentication webpage data through the browser, displaying the portal authentication webpage corresponding to the portal authentication webpage data through the browser, that is, displaying the webpage to the user The interface of the portal authentication web page so that the user can see the interface of the portal authentication web page.
- the method further includes: refreshing the portal authentication webpage by using a browser, where the value of the first parameter is filled in the first parameter in the refreshed portal authentication webpage In the location information, the portal authentication webpage after the association processing is displayed to the user, and the value of the first parameter is filled in the portal authentication webpage after the value of the first parameter is associated with the location information of the first parameter. To the location information of the first parameter.
- the method before sending the value of the first parameter associated with the location information of the first parameter to the WiFi hotspot to complete the portal authentication of the WiFi hotspot, the method further includes: receiving the input authentication sending indication, and the authentication sending indication And means for indicating that the value of the first parameter associated with the location information of the first parameter is sent to the WiFi hotspot.
- the portal authentication webpage data is loaded by the browser, and the location information of the first parameter in the portal authentication webpage data is determined by the following two methods: one is obtained from a locally preset database.
- the first parameter is location information in the portal authentication webpage data; the other is to obtain the location information of the first parameter in the portal authentication webpage data by parsing the portal authentication webpage data.
- the first parameter includes: account information and/or verification code
- Correlating the value of the first parameter with the location information of the first parameter including: filling the account information into an input box corresponding to the location information of the account information; and/or filling the verification code with the input corresponding to the location information of the verification code frame.
- obtaining the value of the first parameter includes: reading the account information from the SIM card; or obtaining the account information from the database,
- the account information in the database is a user history input record.
- the first parameter is a verification code
- the value of the first parameter is obtained, and the verification code short message sent by the server is received; and the verification code in the verification code short message is identified through semantic analysis.
- the method before receiving the verification code text message sent by the server, the method further includes: clicking the get verification code button.
- the embodiment of the present invention provides a WiFi hotspot Portal authentication device, where the device is deployed in an electronic device, where the electronic device may be a mobile phone, a tablet, or other smart wearable device, and the electronic device includes a pre-installed operating system and The browser runs on the operating system, and the device includes: a sending module, a receiving module, and a processing module.
- the sending module is configured to connect to the WiFi hotspot; the sending module is also used to start The browser sends a portal authentication request to the WiFi hotspot; the receiving module is configured to receive the portal authentication webpage data corresponding to the portal authentication request returned by the WiFi hotspot; the processing module is further configured to: load the portal authentication webpage data through the browser, and determine the portal authentication The location information of the first parameter in the webpage data, that is, the location information of the first parameter is automatically obtained by parsing the method for authenticating the webpage of the portal, and the processing module is further configured to obtain the value of the first parameter, and the value of the first parameter is used. Correlation with the location information of the first parameter; the sending module is also used to send The value of the first parameter and the first parameter information associated to a WiFi hotspot locations, in order to complete the portal authentication WiFi hotspot.
- the sending module is used to start the browser, specifically: starting the browser in the foreground of the operating system, or starting the browser in the background of the operating system.
- the sending module is used to start the browser, and specifically includes: starting a browser in a foreground of the operating system;
- the device also includes:
- a display module configured to: after the module loads the portal authentication webpage data through the browser, display, by using a browser, a portal authentication webpage corresponding to the portal authentication webpage data;
- the display module is further configured to: after the processing module associates the value of the first parameter with the location information of the first parameter, refreshing the portal authentication webpage by using a browser, where the value of the first parameter is determined in the refreshed portal authentication webpage Fill in the location information of the first parameter.
- the receiving module is further configured to send, by the sending module, the value of the first parameter associated with the location information of the first parameter to the WiFi hotspot to complete the portal of the WiFi hotspot.
- the input authentication sending indication is received, and the authentication sending indication is used to indicate that the value of the first parameter associated with the location information of the first parameter is sent to the WiFi hotspot.
- the processing module is configured to load the portal authentication webpage data through the browser, and determining the location information of the first parameter in the portal authentication webpage data comprises: obtaining the first parameter from the locally preset database in the portal authentication The location information in the webpage data; or: by parsing the portal authentication webpage data, obtaining the location information of the first parameter in the portal authentication webpage data.
- the first parameter includes: account information and/or verification code
- the processing module is configured to associate the value of the first parameter with the location information of the first parameter, and specifically includes: filling the account information into an input box corresponding to the location information of the account information; and/or filling the verification code into the verification code.
- the input box corresponding to the location information is configured to associate the value of the first parameter with the location information of the first parameter, and specifically includes: filling the account information into an input box corresponding to the location information of the account information; and/or filling the verification code into the verification code.
- the processing module is configured to: obtain the account information from the SIM card, or obtain the account information from the database, and the account information in the database is the user history input record. .
- the processing module is configured to obtain the value of the first parameter, and specifically includes receiving the verification code short message sent by the server; and identifying the verification code in the verification code short message by semantic analysis.
- the embodiment of the present invention provides a WiFi hotspot Portal authentication device, where the device is deployed in an electronic device, where the electronic device includes a pre-installed operating system and a browser, and the browser runs on the operating system, the communication interface, and the memory. And a processor and a communication bus, wherein the communication interface, the memory, and the processor are in communication over the communication bus; the memory storing computer program code;
- the communication interface is used to connect to the WiFi hotspot; the browser is started, the portal authentication request is sent to the WiFi hotspot; and the portal authentication webpage data corresponding to the portal authentication request returned by the WiFi hotspot is received;
- the value of the first parameter is obtained, and the value of the first parameter is associated with the location information of the first parameter.
- the communication interface is further configured to send the value of the first parameter associated with the location information of the first parameter to the WiFi hotspot to complete the portal authentication of the WiFi hotspot.
- the WiFi hotspot Portal authentication method and device provided by the embodiment of the present invention, after the electronic device is connected to the WiFi hotspot, the browser is started, the Portal authentication request is sent to the WiFi hotspot, and the Portal authentication webpage data corresponding to the Portal authentication request returned by the WiFi hotspot is received.
- the location information of the first parameter in the Portal authentication webpage data is determined by the browser pre-installed on the electronic device, and the value of the first parameter is obtained, and the value of the first parameter and the first parameter are obtained.
- the location information is associated, and the value of the first parameter associated with the location information of the first parameter is sent to the WiFi hotspot to complete Portal authentication of the WiFi hotspot.
- the electronic device automatically acquires the value of the first parameter and automatically associates the value of the first parameter with the position information of the first parameter, the input operation of the user is not required, thereby greatly simplifying the connection of the user to the portal.
- the authentication process of the WiFi-like hotspot improves the Portal authentication efficiency.
- FIG. 1 is a schematic diagram of an interface of a WiFi hotspot Portal authentication webpage
- Embodiment 1 of a WiFi hotspot Portal authentication method according to the present invention
- Embodiment 2 of a WiFi hotspot Portal authentication method according to the present invention
- FIG. 5 is a schematic structural diagram of Embodiment 1 of a WiFi hotspot Portal authentication apparatus according to the present invention.
- FIG. 6 is a schematic structural diagram of Embodiment 2 of a WiFi hotspot Portal authentication apparatus according to the present invention.
- FIG. 7 is a schematic structural diagram of Embodiment 3 of a WiFi hotspot Portal authentication apparatus according to the present invention.
- the electronic devices described in the following embodiments of the present invention refer to electronic devices equipped with a Subscriber Identity Module (SIM) card, such as a mobile phone, a tablet or other smart wearable device.
- SIM Subscriber Identity Module
- the operating system and the browser are pre-installed in the electronic device, wherein the browser runs on the operating system, and the operating system may be an IOS, Android, or other operating system, etc., and the present invention is not limited thereto.
- FIG. 1 is an example.
- Figure 1 is an interface of a WiFi hotspot Portal authentication web page.
- the information required for performing Portal authentication includes: account information and verification code, and the steps to be performed include inputting account information, clicking to obtain a verification code button, inputting a verification code, and clicking a login button. Thereby completing Portal authentication.
- FIG. 1 is only an example.
- the information required for the portal authentication may also be only account information, or may be only a verification code, or may include other parameter information, etc., and the present invention is not limited thereto.
- the information required for completing the Portal authentication process is automatically obtained by the electronic device, and the execution of each step in the Portal authentication process is automatically triggered, thereby reducing the Portal.
- the participation of users in the authentication process improves the Portal authentication efficiency of the WiFi hotspot and improves the user experience.
- FIG. 2 is a schematic flowchart of Embodiment 1 of a WiFi hotspot Portal authentication method according to the present invention. The method in this embodiment is performed by an electronic device, as shown in FIG. 2:
- the user connects manually by way of connection. 2.
- the electronic device automatically connects.
- the WiFi hotspot to be connected may be determined by searching or viewing the list of available WiFi hotspots, and selecting the WiFi hotspot to be connected for connection.
- the electronic device When the electronic device held by the user is within the signal coverage range of the WiFi hotspot, the electronic device automatically searches, selects the WiFi hotspot to be connected from the searched available WiFi hotspots according to a preset rule, and the preset rule can select the most The first connected WiFi hotspot is connected, or the WiFi hotspot with the strongest signal strength is selected for connection, or the WiFi hotspot with the least access user is selected for connection.
- the invention is not limited thereto.
- S202 Start a browser, and send a Portal authentication request to the WiFi hotspot.
- the launching of the browser includes launching the browser in the foreground of the operating system or launching the browser in the background of the operating system.
- the portal authentication request is a Hypertext Transfer Protocol (HTTP) request that the browser requests to access the external network.
- the external network can be, for example, the server address of any network: for example, Huawei server, Baidu server, 360 Server, Tencent's server, etc.
- the electronic device sends a Uniform Resoure Locator (URL), and the URL of the webpage is a URL of any webpage of the external network, for example, https://www.huawei.com, and the electronic device starts the browser. Then, enter https://www.huawei.com in the address bar to request access to Huawei's server.
- URL Uniform Resoure Locator
- HTTP response code After receiving the HTTP request, the server will feed back a response, such as an HTTP response, which carries a response code (HTTP response code).
- 200 means Internet access; 301/302/303/307 means Portal type; otherwise it is not Internet access; in non-Chinese mainland, 204 means Internet access; 200 ⁇ 399 means Portal type; otherwise it is not available online; For non-Chinese mainland, 200 means Internet access; 301/302/303/307 means Portal type; otherwise it is not available.
- the response code in the HTTP response is 301, 302, 303 or 307 after receiving the HTTP request, and the server redirects the HTTP request of the client to the portal authentication of the portal.
- the server corresponding to the address authentication type WiFi hotspot will feed back the portal authentication webpage data, so that the electronic device receives the portal authentication webpage data, and then loads the portal authentication webpage.
- S203 Receive portal authentication webpage data corresponding to the portal authentication request returned by the WiFi hotspot.
- S204 Load the Portal authentication webpage data through the browser, and determine the number of Portal authentication webpages. According to the location information of the first parameter.
- the first parameter refers to a preset parameter required for performing Portal authentication, for example, a mobile phone number, a verification code, and/or a password.
- the location information of the first parameter may be a tag identifier (TagID), or other information that can identify the location of the first parameter in the Portal authentication webpage.
- TagID tag identifier
- the invention is not limited thereto.
- the location information of the first parameter in the portal authentication webpage data is determined by, but not limited to, the following two implementation manners:
- a possible implementation manner is: obtaining location information of the first parameter in the Portal authentication webpage data from a locally preset database.
- Another possible implementation manner is: obtaining the location information of the first parameter in the Portal authentication webpage data by parsing the portal authentication webpage data.
- the method further includes: displaying, by using a browser, a portal authentication webpage corresponding to the portal authentication webpage data, that is, the user can see the portal authentication webpage. Interface.
- S205 Acquire a value of the first parameter, and associate the value of the first parameter with the location information of the first parameter.
- Obtaining the value of the first parameter is an automatic execution process of the electronic device without user participation.
- the electronic device obtains the account information of the electronic device by reading from the SIM card, and the account information is usually stored in the SIM card.
- the account information of the electronic device is obtained from the database, and the account information of the electronic device in the database is a user history input record.
- the first parameter is the verification code information, and the value of the first parameter is obtained.
- the button for clicking the verification code is triggered, the request for obtaining the verification code is sent, and then the verification code message sent by the server is received.
- the semantic verification method is used to identify the verification code in the verification code short message. For example, it is detected by semantic analysis that the content of the verification code message contains specific keywords, such as password, verification code, authentication code, etc.; the interference of the number and letter content, such as date, phone number, website address, etc., is obtained, and the verification code is obtained. To verify whether the parsed verification code meets the requirements of the verification code, such as the verification code requires consecutive 4 to 6 digits or letters.
- the value of the first parameter and the position information of the first parameter are obtained.
- the association is performed, that is, the correspondence between the value of the first parameter and the position information of the first parameter is established, for example, the first parameter is implemented by assigning the value of the first parameter to the position information of the first parameter.
- the value is filled in the location information of the first parameter, thereby establishing an association relationship.
- the account information is filled in the input box corresponding to the location information of the account information
- the first parameter is the verification code
- the account information is filled in the input box corresponding to the location information of the verification code.
- the method further includes: refreshing the portal authentication webpage by using a browser, where the refreshed portal In the authentication webpage, the value of the first parameter is filled in the location information of the first parameter. That is, the user is displayed to the interface in which the value of the first parameter is filled in the position information of the first parameter. Further, the process interface in which the value of the first parameter is filled in the location information of the first parameter may also be realistic to the user, so that the process of automatically performing the authentication by the electronic device is visible to the user.
- S206 Send the value of the first parameter associated with the location information of the first parameter to the WiFi hotspot to complete the portal authentication of the WiFi hotspot.
- An implementation manner is: receiving an input authentication sending indication, where the sending sending indication is used to indicate that the value of the first parameter associated with the location information of the first parameter is sent to the WiFi hotspot, and the location of the first parameter is sent.
- the value of the first parameter associated with the information is to the WiFi hotspot.
- the authentication sending indication of receiving the input can be implemented by the user clicking to send the corresponding button.
- the corresponding button can be sent, such as a "login” button, an "ok” button, a “connect” button, etc., and the present invention is not limited thereto.
- Another implementation manner is: the electronic device automatically triggers execution of the sending indication, that is, the electronic device automatically performs a button corresponding to the click sending, and the corresponding button can be sent by the “login” button, the “ok” button, the “connected” button, etc.,
- the invention is not limited.
- the browser is started, and the Portal authentication request is sent to the WiFi hotspot, and the Portal authentication webpage data corresponding to the Portal authentication request returned by the WiFi hotspot is received, and the browser is pre-installed on the electronic device.
- the value of the first parameter associated with the location information of the first parameter is sent to the WiFi hotspot to complete the Portal authentication of the WiFi hotspot. In this process, the value of the first parameter is obtained because the value of the first parameter is obtained.
- the location information of the first parameter is associated, wherein the location information of the first parameter is determined by the electronic device loading the Portal authentication webpage data by the browser, and the user participation in the Portal authentication process is reduced, and the authentication process is simple. Therefore, the portal is improved. Certification efficiency.
- FIG. 3 is a schematic flowchart of Embodiment 2 of a WiFi hotspot Portal authentication method according to the present invention.
- the method in this embodiment is performed by an electronic device, as shown in FIG. 2:
- FIG. 3 is an example of the interface of the Portal authentication webpage shown in FIG.
- the process of automatic authentication of electronic devices is described.
- the first parameter required for authentication in the interface of the authentication webpage shown in FIG. 1 is account information and a verification code
- the actions to be performed are input account information, input verification code, click to obtain a verification code button, and click a login button to obtain
- the required first parameter and the action to be performed may all be automatically performed by the electronic device, or may be automatically executed by the electronic device.
- the invention can reduce the participation of the user in the authentication process, and the authentication process is simple.
- the following is an example of automatic execution by electronic devices:
- S301 Obtain location information of the account information input box, obtain location information of the verification code button, location information of the verification code input box, and location information of the login button.
- the electronic device obtains the HTML content of the webpage authenticated by the portal, parses the HTML content, obtains the location information of the “account information input box”, the location information of the “acquisition verification code button”, and the location information of the “verification code input box” and Location information for the "login button”.
- the location information may be a tag identifier (TagID), or other information that can identify the account information input box, the verification code button, the verification code input box, and the location of the login button in the web page.
- TagID tag identifier
- the present invention is not limited thereto.
- the account information may be a mobile phone number or other number that can uniquely identify the electronic device, and the present invention is not limited thereto.
- the following takes the location information as "TagID” as an example to describe the location information of the "account information input box", the location information of the "acquisition verification code button”, the location information of the "authentication code input box”, and the location of the "login button”. Possible implementation of information.
- the location information of the "account information input box" is included, but is not limited to the following two implementation modes:
- the TagID of the "account information input box" is obtained through a database preset locally by the electronic device.
- filter the "value” value or the "placeholder” value related to the "account information” for example:
- the "value” value or the "placeholder” value is "Please enter the account information", and the "value” value or the “placeholder” value is considered to be related to the "account information”; the "value” value or the “placeholder” value and the “account information” are obtained.
- the TagID of the related ⁇ input> item is the TagID of the "Account Information Input Box"; an ⁇ input> item corresponds to a TagID.
- the location information of obtaining the "acquire verification code button” includes but is not limited to the following two implementation manners:
- the TagID of the "acquire verification code button” is obtained through a database preset locally by the electronic device.
- the TagID of the "verification code input box” is obtained through a database preset locally by the electronic device.
- Filter all ⁇ input> items in the HTML content and filter out the ⁇ value> value or the "placeholder” value associated with the "input verification code” in the ⁇ input> item, for example: “value” value or “placeholder” value Please enter the verification code”, then the "value” value or “placeholder” value is related to the "input verification code”; the "value” value or the “placeholder” value is the TagID of the ⁇ input> item associated with the "input verification code” TagID of the "verification code input box”; an ⁇ input> item corresponds to a TagID.
- the location information of the "login button” includes but is not limited to the following two implementations:
- the TagID of the "login button” is obtained from the database preset by the electronic device.
- the position information of the "account information input box", the position information of the "acquisition verification code button", the position information of the "verification code input box”, and the position information of the "login button” are obtained.
- the method of the present invention is not limited, and the method can be used to obtain one of the first ones.
- S302 The electronic device acquires account information of the electronic device.
- the electronic device reads the account information of the electronic device from the SIM card, and the account information is usually stored in the SIM card.
- the electronic device acquires account information of the electronic device from the database, and the account information of the electronic device in the database is a user history input record.
- S303 The electronic device fills in the account information into an input box corresponding to the location information of the account information input box.
- S304 The electronic device clicks a button corresponding to the location information of the verification code button.
- S305 The electronic device obtains a verification code.
- the verification code in the verification code short message is identified through semantic analysis. For example, it is detected by semantic analysis that the content of the verification code message contains specific keywords, such as password, verification code, authentication code, etc.; the interference of the number and letter content, such as date, phone number, website address, etc., is obtained, and the verification code is obtained. To verify whether the parsed verification code meets the requirements of the verification code, such as the verification code requires consecutive 4 to 6 digits or letters.
- S306 The electronic device fills in the verification code to the input box corresponding to the location information of the verification code input box.
- S307 The electronic device clicks a button corresponding to the location information of the login button to complete Portal authentication of the WiFi hotspot.
- the location information of the account information input box, the location information of the verification code button, the location information of the verification code input box, and the location information of the login button are obtained; and the account information of the electronic device is acquired, and the account information is filled in the account information.
- the user does not need to participate in the operation, and the electronic device automatically completes the Portal authentication. Therefore, the Portal authentication efficiency is improved, and High user experience.
- FIG. 4 is a schematic flowchart of Embodiment 3 of a WiFi hotspot Portal authentication method according to the present invention.
- FIG. 4 is a schematic diagram of the embodiment shown in FIG. 3, and before performing S301, further including S401-S403 or S402-S403, as shown in FIG. 4 shows:
- S401 The electronic device determines that the WiFi hotspot is connected.
- the electronic device can determine the available WiFi hotspot by searching and display it to the user to be selected by the user.
- the user determines the WiFi hotspot to be connected by clicking or other means.
- the automatic execution S402 is triggered.
- S402 The electronic device sends an access request.
- the access request is used to request access to the external network.
- the electronic device determines, according to the access response corresponding to the access request, that the authentication mode of the connected WiFi hotspot is Portal authentication.
- the electronic device When the authentication mode of the WiFi hotspot is Portal authentication, the electronic device cannot access the external network before the authentication is performed. When the electronic device sends an access request to access the external network, it will automatically jump to the Portal authentication page.
- the authentication method of the WiFi hotspot is not Portal authentication, when the electronic device sends an access request to access the external network, it does not jump to the Portal authentication page. Therefore, the access response corresponding to the access request can be redirected to Portal authentication.
- the webpage determines that the authentication mode of the connected WiFi hotspot is Portal authentication.
- the electronic device determines that the access request to the external network is sent after the WiFi hotspot is connected, and determines the connected WiFi hotspot according to the access response corresponding to the access request.
- the authentication mode is Portal Portal authentication, which implements the authentication method for accessing the WiFi hotspot.
- the steps of the embodiment shown in Figure 3 are executed to implement the Portal authentication automatically. Therefore, the Portal authentication is improved. Efficiency and improved user experience.
- Embodiment 1 of a WiFi hotspot Portal authentication device is deployed in an electronic device, where the electronic device includes a pre-installed operating system and a browser, and the browser runs on the operating system.
- the device includes: a sending module 501, a receiving module 502, and a processing module 503, wherein the sending module 501 is configured to connect to a WiFi hotspot; the sending module 501 is further configured to start a browser, send a portal authentication request to the WiFi hotspot, and the receiving module 502 And the processing module 503 is further configured to: load the portal authentication webpage data by using a browser to determine location information of the first parameter in the portal authentication webpage data; and the processing module 503 is configured to receive the portal authentication webpage data corresponding to the portal authentication request.
- the method is further configured to: obtain a value of the first parameter, and associate the value of the first parameter with the location information of the first parameter; the sending module 501 is further configured to send the value of the first parameter that is associated with the location information of the first parameter. Go to the WiFi hotspot to complete the portal authentication for the WiFi hotspot.
- the sending module 501 is used to start the browser, specifically: starting the browser in the foreground of the operating system, or starting the browser in the background of the operating system.
- the sending module 501 is configured to: start the browser in the foreground of the operating system;
- the device also includes:
- the display module 504 is configured to: after the processing module loads the portal authentication webpage data through the browser, display, by using a browser, a portal authentication webpage corresponding to the portal authentication webpage data;
- the display module 504 is further configured to: after the processing module associates the value of the first parameter with the location information of the first parameter, refresh the portal authentication webpage by using a browser, where the value of the first parameter is determined in the refreshed portal authentication webpage. Fill in the location information of the first parameter.
- the receiving module 502 is further configured to: send, by the sending module, the value of the first parameter associated with the location information of the first parameter to the WiFi hotspot, to receive the input authentication sending indication before completing the portal authentication of the WiFi hotspot,
- the authentication sending indication is used to indicate that the value of the first parameter associated with the location information of the first parameter is sent to the WiFi hotspot.
- the processing module 503 is configured to load the portal authentication webpage data by using the browser, and determining the location information of the first parameter in the portal authentication webpage data comprises: acquiring the first parameter from the locally preset database in the portal authentication webpage. The location information in the data; or: by parsing the portal authentication webpage data, obtaining the location information of the first parameter in the portal authentication webpage data.
- the first parameter includes: account information and/or a verification code
- the processing module 503 is configured to associate the value of the first parameter with the location information of the first parameter, and specifically includes: filling the account information into an input box corresponding to the location information of the account information; and/or filling the verification code into the verification code The location information corresponds to the input box.
- the obtaining, by the processing module 503, the value of the first parameter includes: The account information is read from the SIM card; or the account information is obtained from the database, and the account information in the database is a user history input record.
- the processing module 503 is configured to obtain the verification code of the verification code sent by the receiving server by using the semantic analysis to identify the verification code in the verification code short message.
- FIG. 6 is a schematic structural diagram of Embodiment 2 of a WiFi hotspot Portal authentication apparatus according to the present invention.
- the device is deployed in an electronic device, where the electronic device includes a pre-installed operating system and a browser, and the browser runs on the operating system, including the communication interface 601.
- the communication interface 601 is configured to connect to the WiFi hotspot; start a browser, send a portal authentication request to the WiFi hotspot; and receive the portal authentication webpage data corresponding to the portal authentication request returned by the WiFi hotspot;
- the processor 602 performs the following processing when calling the computer program code:
- the value of the first parameter is obtained, and the value of the first parameter is associated with the location information of the first parameter.
- the communication interface 601 is further configured to send the value of the first parameter associated with the location information of the first parameter to the WiFi hotspot to complete the portal authentication of the WiFi hotspot.
- FIG. 7 is a schematic structural diagram of Embodiment 3 of a WiFi hotspot Portal authentication apparatus according to the present invention.
- the apparatus is deployed in an electronic device, and the electronic device takes a mobile phone as an example, as shown in FIG. 7 .
- electronic device 700 can include one or more of the following components: processing component 702, memory 704, power component 706, multimedia component 708, audio component 710, input/output (I/O) interface 712, sensor component 714, And a communication component 716.
- Processing component 702 typically controls the overall operation of electronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 702 can One or more processors 720 are included to execute the instructions to perform all or part of the steps described above. Moreover, processing component 702 can include one or more modules to facilitate interaction between component 702 and other components. For example, processing component 702 can include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.
- Memory 704 is configured to store various types of data to support operation at electronic device 700. Examples of such data include instructions for any application or method operating on electronic device 700, contact data, phone book data, messages, pictures, videos, and the like. Memory 704 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
- SRAM static random access memory
- EEPROM electrically erasable programmable read only memory
- EPROM erasable Programmable Read Only Memory
- PROM Programmable Read Only Memory
- ROM Read Only Memory
- Magnetic Memory Flash Memory
- Disk Disk or Optical Disk.
- Power component 706 provides power to various components of electronic device 700.
- Power component 706 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 700.
- the multimedia component 708 includes a screen between the electronic device 700 and the user that provides an output interface.
- the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
- the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can sense not only the boundaries of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
- the multimedia component 708 includes a front camera and/or a rear camera. When the electronic device 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
- the audio component 710 is configured to output and/or input an audio signal.
- the audio component 710 includes a microphone (MIC) that is configured to receive an external audio signal when the electronic device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
- the received audio signal may be further stored in memory 704 or transmitted via communication component 716.
- audio component 710 also includes a speaker for outputting an audio signal.
- Input/output interface 712 provides an interface between processing component 702 and peripheral interface modules.
- the above peripheral interface module may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
- Sensor component 714 includes one or more sensors for providing electronic device 700 with a status assessment of various aspects.
- the sensor component 714 can detect an open/closed state of the electronic device 700, a relative positioning of the component, such as the display and keypad of the electronic device 700, and the sensor component 714 can also detect the electronic device 700 or the electronic device 700.
- the position of the component changes, the presence or absence of contact of the user with the electronic device 700, the orientation or acceleration/deceleration of the electronic device 700, and the temperature change of the electronic device 700.
- Sensor assembly 714 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
- Sensor component 714 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
- the sensor component 714 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
- Communication component 716 is configured to facilitate wired or wireless communication between electronic device 700 and other devices.
- the electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
- communication component 716 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
- the communication component 716 also includes a near field communication (NFC) module to facilitate short range communication.
- NFC near field communication
- the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- electronic device 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), A gated array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
- ASICs application specific integrated circuits
- DSPs digital signal processors
- DSPDs digital signal processing devices
- PLDs programmable logic devices
- FPGA gated array
- controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
- non-transitory computer readable storage medium comprising instructions, such as a memory 704 comprising instructions executable by processor 760 of electronic device 700 to perform the above method.
- the non-transitory computer readable storage medium can be implemented by any type of volatile or nonvolatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable and programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), magnetic memory, flash memory, disk or optical disk.
- SRAM static random access memory
- EEPROM electrically erasable and programmable Read Only Memory
- EPROM Erasable Programmable Read Only Memory
- PROM Programmable Read Only Memory
- ROM Read Only Memory
- a non-transitory computer readable storage medium when an instruction in the storage medium is executed by a processor of an electronic device, enabling the electronic device to perform a WiFi hotspot Portal authentication method, the method comprising:
- the aforementioned program can be stored in a computer readable storage medium.
- the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本发明实施例涉及通信技术,尤其涉及一种WiFi热点Portal认证方法和装置。The embodiments of the present invention relate to communication technologies, and in particular, to a WiFi hotspot Portal authentication method and apparatus.
无线保真网络(Wireless Fidelity,简称:WiFi)技术因其具有使用方便、传输速率高等优点,得到了广泛应用。Wireless Fidelity (WiFi) technology has been widely used due to its advantages of ease of use and high transmission rate.
在机场、商场等公共场所,通常会部署很多免费的公共WiFi热点以供用户使用,通常用户需要进行门户(Portal)认证之后,才能使用这些WiFi热点。相关技术中,一种Portal认证过程为:用户登录浏览器,浏览器跳转到认证界面,用户通过在认证界面输入手机号码,点击获取验证码按钮,输入验证码,点击登录按钮完成认证,完成认证之后才可以使用这些热点所提供的网络。In public places such as airports and shopping malls, many free public WiFi hotspots are usually deployed for users to use. Usually, users need to perform portal authentication before they can use these WiFi hotspots. In the related art, a Portal authentication process is: the user logs in to the browser, and the browser jumps to the authentication interface. The user enters the mobile phone number in the authentication interface, clicks the get verification code button, enters the verification code, and clicks the login button to complete the authentication. The network provided by these hotspots can only be used after authentication.
然而,采用现有技术的方法,认证过程繁琐复杂,认证效率较低。However, with the prior art method, the authentication process is cumbersome and complicated, and the authentication efficiency is low.
发明内容Summary of the invention
本发明实施例提供一种WiFi热点Portal认证方法和装置,以提高认证效率。The embodiment of the invention provides a WiFi hotspot Portal authentication method and device to improve the authentication efficiency.
第一方面,本发明实施例提供一种WiFi热点Portal认证方法,该方法应用于电子设备中,该电子设备可以是手机、平板或其他智能穿戴设备等,该电子设备中预先安装有操作系统和浏览器,浏览器运行于操作系统上,该方法包括:In a first aspect, an embodiment of the present invention provides a WiFi hotspot Portal authentication method, where the method is applied to an electronic device, where the electronic device may be a mobile phone, a tablet, or other smart wearable device, and the electronic device is pre-installed with an operating system and Browser, the browser runs on the operating system, and the method includes:
电子设备需要通过WiFi热点进行连网时,先连接WiFi热点,然后,启动浏览器,发送门户认证请求至WiFi热点,以请求访问外部网络;WiFi热点接收到门户认证请求之后,向电子设备返回的与门户认证请求对应的门户认证网页数据;电子设备通过浏览器加载门户认证网页数据,确定门户认证网页数据中第一参数的位置信息,即电子设备通过解析门户认证网 页数据的方式自动获取第一参数的位置信息,并获取第一参数的取值,将第一参数的取值和第一参数的位置信息进行关联;发送与第一参数的位置信息关联的第一参数的取值至WiFi热点,从而,完成WiFi热点的门户认证,在此过程中,减少用户的参与,提高认证效率。When the electronic device needs to connect through the WiFi hotspot, the WiFi hotspot is first connected, then the browser is started, and the portal authentication request is sent to the WiFi hotspot to request access to the external network; after the WiFi hotspot receives the portal authentication request, the WiFi hotspot returns to the electronic device. The portal authentication webpage data corresponding to the portal authentication request; the electronic device loads the portal authentication webpage data through the browser, and determines the location information of the first parameter in the portal authentication webpage data, that is, the electronic device parses the portal authentication network The method of the page data automatically acquires the location information of the first parameter, and obtains the value of the first parameter, and associates the value of the first parameter with the location information of the first parameter; and sends the information associated with the location information of the first parameter. The value of a parameter is added to the WiFi hotspot, thereby completing the portal authentication of the WiFi hotspot, and in this process, the participation of the user is reduced, and the authentication efficiency is improved.
在一种可能的设计中,启动浏览器包括:在操作系统的前台启动浏览器,或在操作系统的后台启动浏览器。In one possible design, launching the browser includes launching the browser in the foreground of the operating system or launching the browser in the background of the operating system.
在一种可能的设计中,启动浏览器包括:在操作系统的前台启动浏览器;通过浏览器加载门户认证网页数据之后,通过浏览器显示门户认证网页数据对应的门户认证网页,即向用户显示门户认证网页的界面,以使用户可以看到门户认证网页的界面。将第一参数的取值和第一参数的位置信息进行关联之后,还包括:通过浏览器刷新门户认证网页,其中刷新后的门户认证网页中,第一参数的取值被填写至第一参数的位置信息中,即向用户显示进行关联处理之后的门户认证网页,第一参数的取值和第一参数的位置信息进行关联处理之后的门户认证网页中,第一参数的取值已被填写至第一参数的位置信息中。In a possible design, starting the browser includes: starting a browser in the foreground of the operating system; after loading the portal authentication webpage data through the browser, displaying the portal authentication webpage corresponding to the portal authentication webpage data through the browser, that is, displaying the webpage to the user The interface of the portal authentication web page so that the user can see the interface of the portal authentication web page. After the value of the first parameter is associated with the location information of the first parameter, the method further includes: refreshing the portal authentication webpage by using a browser, where the value of the first parameter is filled in the first parameter in the refreshed portal authentication webpage In the location information, the portal authentication webpage after the association processing is displayed to the user, and the value of the first parameter is filled in the portal authentication webpage after the value of the first parameter is associated with the location information of the first parameter. To the location information of the first parameter.
在一种可能的设计中,发送与第一参数的位置信息关联的第一参数的取值至WiFi热点,以完成WiFi热点的门户认证之前,还包括:接收输入的认证发送指示,认证发送指示用于指示发送与第一参数的位置信息关联的第一参数的取值至WiFi热点。In a possible design, before sending the value of the first parameter associated with the location information of the first parameter to the WiFi hotspot to complete the portal authentication of the WiFi hotspot, the method further includes: receiving the input authentication sending indication, and the authentication sending indication And means for indicating that the value of the first parameter associated with the location information of the first parameter is sent to the WiFi hotspot.
在一种可能的设计中,通过浏览器加载门户认证网页数据,确定门户认证网页数据中第一参数的位置信息,可以通过如下两种方式实现:一种为,从本地预置的数据库中获取第一参数在门户认证网页数据中的位置信息;另一种为通过解析门户认证网页数据,获取第一参数在门户认证网页数据中的位置信息。In a possible design, the portal authentication webpage data is loaded by the browser, and the location information of the first parameter in the portal authentication webpage data is determined by the following two methods: one is obtained from a locally preset database. The first parameter is location information in the portal authentication webpage data; the other is to obtain the location information of the first parameter in the portal authentication webpage data by parsing the portal authentication webpage data.
在一种可能的设计中,第一参数包括:账号信息和/或验证码;In one possible design, the first parameter includes: account information and/or verification code;
将第一参数的取值和第一参数的位置信息进行关联,包括:将账号信息填写至账号信息的位置信息对应的输入框;和/或将验证码填写至验证码的位置信息对应的输入框。Correlating the value of the first parameter with the location information of the first parameter, including: filling the account information into an input box corresponding to the location information of the account information; and/or filling the verification code with the input corresponding to the location information of the verification code frame.
在一种可能的设计中,当第一参数为账号信息时,获取第一参数的取值,包括:从SIM卡中读取账号信息;或者,从数据库中获取账号信息, 数据库中的账号信息为用户历史输入记录。In a possible design, when the first parameter is the account information, obtaining the value of the first parameter includes: reading the account information from the SIM card; or obtaining the account information from the database, The account information in the database is a user history input record.
在一种可能的设计中,当第一参数为验证码时,获取第一参数的取值,接收服务器发送的验证码短信;通过语义分析识别验证码短信中的验证码。In a possible design, when the first parameter is a verification code, the value of the first parameter is obtained, and the verification code short message sent by the server is received; and the verification code in the verification code short message is identified through semantic analysis.
在一种可能的设计中,接收服务器发送的验证码短信之前,还包括:点击获取验证码按钮。In a possible design, before receiving the verification code text message sent by the server, the method further includes: clicking the get verification code button.
第二方面,本发明实施例提供一种WiFi热点Portal认证装置,该装置部署于电子设备中,该电子设备可以是手机、平板或其他智能穿戴设备等,电子设备中包括预先安装的操作系统和浏览器,浏览器运行于操作系统上,装置包括:发送模块、接收模块和处理模块,电子设备需要通过WiFi热点进行连网时,发送模块,用于连接WiFi热点;发送模块,还用于启动浏览器,发送门户认证请求至WiFi热点;接收模块,用于接收WiFi热点返回的与门户认证请求对应的门户认证网页数据;处理模块,还用于通过浏览器加载门户认证网页数据,确定门户认证网页数据中第一参数的位置信息,即通过解析门户认证网页数据的方式自动获取第一参数的位置信息,;处理模块,还用于获取第一参数的取值,将第一参数的取值和第一参数的位置信息进行关联;发送模块,还用于发送与第一参数的位置信息关联的第一参数的取值至WiFi热点,以完成WiFi热点的门户认证。In a second aspect, the embodiment of the present invention provides a WiFi hotspot Portal authentication device, where the device is deployed in an electronic device, where the electronic device may be a mobile phone, a tablet, or other smart wearable device, and the electronic device includes a pre-installed operating system and The browser runs on the operating system, and the device includes: a sending module, a receiving module, and a processing module. When the electronic device needs to connect through the WiFi hotspot, the sending module is configured to connect to the WiFi hotspot; the sending module is also used to start The browser sends a portal authentication request to the WiFi hotspot; the receiving module is configured to receive the portal authentication webpage data corresponding to the portal authentication request returned by the WiFi hotspot; the processing module is further configured to: load the portal authentication webpage data through the browser, and determine the portal authentication The location information of the first parameter in the webpage data, that is, the location information of the first parameter is automatically obtained by parsing the method for authenticating the webpage of the portal, and the processing module is further configured to obtain the value of the first parameter, and the value of the first parameter is used. Correlation with the location information of the first parameter; the sending module is also used to send The value of the first parameter and the first parameter information associated to a WiFi hotspot locations, in order to complete the portal authentication WiFi hotspot.
在一种可能的设计中,发送模块用于启动浏览器具体包括:在操作系统的前台启动浏览器,或在操作系统的后台启动浏览器。In a possible design, the sending module is used to start the browser, specifically: starting the browser in the foreground of the operating system, or starting the browser in the background of the operating system.
在一种可能的设计中,发送模块用于启动浏览器具体包括:在操作系统的前台启动浏览器;In a possible design, the sending module is used to start the browser, and specifically includes: starting a browser in a foreground of the operating system;
所述装置还包括:The device also includes:
显示模块,用于处理模块通过浏览器加载门户认证网页数据之后,通过浏览器显示门户认证网页数据对应的门户认证网页;a display module, configured to: after the module loads the portal authentication webpage data through the browser, display, by using a browser, a portal authentication webpage corresponding to the portal authentication webpage data;
显示模块,还用于处理模块将第一参数的取值和第一参数的位置信息进行关联之后,通过浏览器刷新门户认证网页,其中刷新后的门户认证网页中,第一参数的取值被填写至第一参数的位置信息中。The display module is further configured to: after the processing module associates the value of the first parameter with the location information of the first parameter, refreshing the portal authentication webpage by using a browser, where the value of the first parameter is determined in the refreshed portal authentication webpage Fill in the location information of the first parameter.
在一种可能的设计中,接收模块,还用于发送模块发送与第一参数的位置信息关联的第一参数的取值至WiFi热点,以完成WiFi热点的门户认 证之前,接收输入的认证发送指示,认证发送指示用于指示发送与第一参数的位置信息关联的第一参数的取值至WiFi热点。In a possible design, the receiving module is further configured to send, by the sending module, the value of the first parameter associated with the location information of the first parameter to the WiFi hotspot to complete the portal of the WiFi hotspot. Before the certificate is received, the input authentication sending indication is received, and the authentication sending indication is used to indicate that the value of the first parameter associated with the location information of the first parameter is sent to the WiFi hotspot.
在一种可能的设计中,处理模块用于通过浏览器加载门户认证网页数据,确定门户认证网页数据中第一参数的位置信息具体包括:从本地预置的数据库中获取第一参数在门户认证网页数据中的位置信息;或者:通过解析门户认证网页数据,获取第一参数在门户认证网页数据中的位置信息。In a possible design, the processing module is configured to load the portal authentication webpage data through the browser, and determining the location information of the first parameter in the portal authentication webpage data comprises: obtaining the first parameter from the locally preset database in the portal authentication The location information in the webpage data; or: by parsing the portal authentication webpage data, obtaining the location information of the first parameter in the portal authentication webpage data.
在一种可能的设计中,第一参数包括:账号信息和/或验证码;In one possible design, the first parameter includes: account information and/or verification code;
处理模块用于将第一参数的取值和第一参数的位置信息进行关联具体包括:将账号信息填写至账号信息的位置信息对应的输入框;和/或,将验证码填写至验证码的位置信息对应的输入框。The processing module is configured to associate the value of the first parameter with the location information of the first parameter, and specifically includes: filling the account information into an input box corresponding to the location information of the account information; and/or filling the verification code into the verification code. The input box corresponding to the location information.
在一种可能的设计中,处理模块用于获取第一参数的取值具体包括:从SIM卡中读取账号信息;或者,从数据库中获取账号信息,数据库中的账号信息为用户历史输入记录。In a possible design, the processing module is configured to: obtain the account information from the SIM card, or obtain the account information from the database, and the account information in the database is the user history input record. .
在一种可能的设计中,处理模块用于获取第一参数的取值具体包括接收服务器发送的验证码短信;通过语义分析识别验证码短信中的验证码。In a possible design, the processing module is configured to obtain the value of the first parameter, and specifically includes receiving the verification code short message sent by the server; and identifying the verification code in the verification code short message by semantic analysis.
第三方面,本发明实施例提供一种WiFi热点Portal认证装置,该装置部署于电子设备中,电子设备中包括预先安装的操作系统和浏览器,浏览器运行于操作系统上,通信接口、存储器和处理器和通信总线,其中,所述通信接口、所述存储器和所述处理器通过所述通信总线通信;所述存储器存储计算机程序代码;In a third aspect, the embodiment of the present invention provides a WiFi hotspot Portal authentication device, where the device is deployed in an electronic device, where the electronic device includes a pre-installed operating system and a browser, and the browser runs on the operating system, the communication interface, and the memory. And a processor and a communication bus, wherein the communication interface, the memory, and the processor are in communication over the communication bus; the memory storing computer program code;
通信接口用于连接WiFi热点;启动浏览器,发送门户认证请求至WiFi热点;接收WiFi热点返回的与门户认证请求对应的门户认证网页数据;The communication interface is used to connect to the WiFi hotspot; the browser is started, the portal authentication request is sent to the WiFi hotspot; and the portal authentication webpage data corresponding to the portal authentication request returned by the WiFi hotspot is received;
处理器在调用计算机程序代码时,执行以下处理过程:When the processor calls the computer program code, it performs the following processing:
通过浏览器加载门户认证网页数据,确定门户认证网页数据中第一参数的位置信息;Loading the portal authentication webpage data through the browser to determine location information of the first parameter in the portal authentication webpage data;
获取第一参数的取值,将第一参数的取值和第一参数的位置信息进行关联。The value of the first parameter is obtained, and the value of the first parameter is associated with the location information of the first parameter.
通信接口还用于发送与第一参数的位置信息关联的第一参数的取值至WiFi热点,以完成WiFi热点的门户认证。 The communication interface is further configured to send the value of the first parameter associated with the location information of the first parameter to the WiFi hotspot to complete the portal authentication of the WiFi hotspot.
本发明实施例提供的WiFi热点Portal认证方法和装置,通过电子设备连接WiFi热点后,启动浏览器,发送Portal认证请求至WiFi热点,接收WiFi热点返回的与Portal认证请求对应的Portal认证网页数据,通过在电子设备上预先安装的浏览器加载Portal认证网页数据,确定Portal认证网页数据中第一参数的位置信息,并获取第一参数的取值,将第一参数的取值和第一参数的位置信息进行关联,将与第一参数的位置信息关联的第一参数的取值发送至WiFi热点,以完成WiFi热点的Portal认证。在此过程中,由于电子设备是自动获取第一参数的取值,并自动将第一参数的取值和第一参数的位置信息进行关联,无需用户的输入操作,因此大大简化了用户连接Portal类WiFi热点的认证过程,提高了Portal认证效率。The WiFi hotspot Portal authentication method and device provided by the embodiment of the present invention, after the electronic device is connected to the WiFi hotspot, the browser is started, the Portal authentication request is sent to the WiFi hotspot, and the Portal authentication webpage data corresponding to the Portal authentication request returned by the WiFi hotspot is received. The location information of the first parameter in the Portal authentication webpage data is determined by the browser pre-installed on the electronic device, and the value of the first parameter is obtained, and the value of the first parameter and the first parameter are obtained. The location information is associated, and the value of the first parameter associated with the location information of the first parameter is sent to the WiFi hotspot to complete Portal authentication of the WiFi hotspot. In this process, since the electronic device automatically acquires the value of the first parameter and automatically associates the value of the first parameter with the position information of the first parameter, the input operation of the user is not required, thereby greatly simplifying the connection of the user to the portal. The authentication process of the WiFi-like hotspot improves the Portal authentication efficiency.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为一种WiFi热点Portal认证网页的界面示意图;FIG. 1 is a schematic diagram of an interface of a WiFi hotspot Portal authentication webpage;
图2为本发明WiFi热点Portal认证方法实施例一的流程示意图;2 is a schematic flowchart of Embodiment 1 of a WiFi hotspot Portal authentication method according to the present invention;
图3为本发明WiFi热点Portal认证方法实施例二的流程示意图;3 is a schematic flowchart of Embodiment 2 of a WiFi hotspot Portal authentication method according to the present invention;
图4为本发明WiFi热点Portal认证方法实施例三的流程示意图;4 is a schematic flowchart of Embodiment 3 of a WiFi hotspot Portal authentication method according to the present invention;
图5为本发明WiFi热点Portal认证装置实施例一的结构示意图;FIG. 5 is a schematic structural diagram of Embodiment 1 of a WiFi hotspot Portal authentication apparatus according to the present invention;
图6为本发明WiFi热点Portal认证装置实施例二的结构示意图;FIG. 6 is a schematic structural diagram of Embodiment 2 of a WiFi hotspot Portal authentication apparatus according to the present invention;
图7为本发明WiFi热点Portal认证装置实施例三的结构示意图。FIG. 7 is a schematic structural diagram of Embodiment 3 of a WiFi hotspot Portal authentication apparatus according to the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明下述各实施例所描述的电子设备均是指安装有客户识别模块(Subscriber Identity Module,简称:SIM)卡的电子设备,例如:手机、平板或其他智能穿戴设备等。电子设备中预先安装操作系统和浏览器,其中,浏览器运行于操作系统上,操作系统可以是IOS、安卓或者其他操作系统等,对此,本发明不作限制。The electronic devices described in the following embodiments of the present invention refer to electronic devices equipped with a Subscriber Identity Module (SIM) card, such as a mobile phone, a tablet or other smart wearable device. The operating system and the browser are pre-installed in the electronic device, wherein the browser runs on the operating system, and the operating system may be an IOS, Android, or other operating system, etc., and the present invention is not limited thereto.
在公共场所,通常会设置公共WiFi热点,连接这些WiFi热点通常采用Portal认证的方式,不同的Portal认证所需的信息不同,以图1为例,图1为一种WiFi热点Portal认证网页的界面示意图,如图1所示,可以看出,进行Portal认证所需的信息包括:账号信息和验证码,需要执行的步骤包括输入账号信息,点击获取验证码按钮、输入验证码、点击登录按钮,从而完成Portal认证。图1仅为一种示例,Portal认证所需的信息也可以只有账号信息,或者,也可以只有验证码,或者,也可以包含其他的参数信息等,对此,本发明不做限制。In a public place, a public WiFi hotspot is usually set up. The connection between the WiFi hotspots is generally performed in the form of Portal authentication. The information required for different Portal authentications is different. Figure 1 is an example. Figure 1 is an interface of a WiFi hotspot Portal authentication web page. As shown in FIG. 1 , it can be seen that the information required for performing Portal authentication includes: account information and verification code, and the steps to be performed include inputting account information, clicking to obtain a verification code button, inputting a verification code, and clicking a login button. Thereby completing Portal authentication. FIG. 1 is only an example. The information required for the portal authentication may also be only account information, or may be only a verification code, or may include other parameter information, etc., and the present invention is not limited thereto.
本发明实施例为了提高WiFi热点的Portal认证效率,当用户连接WiFi热点之后,通过电子设备自动获取填写Portal认证过程中所需的信息,并自动触发Portal认证过程中各步骤的执行,从而减少Portal认证过程中用户的参与,提高了WiFi热点的Portal认证效率,并提高了用户体验。In the embodiment of the present invention, in order to improve the Portal authentication efficiency of the WiFi hotspot, after the user connects to the WiFi hotspot, the information required for completing the Portal authentication process is automatically obtained by the electronic device, and the execution of each step in the Portal authentication process is automatically triggered, thereby reducing the Portal. The participation of users in the authentication process improves the Portal authentication efficiency of the WiFi hotspot and improves the user experience.
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
图2为本发明WiFi热点Portal认证方法实施例一的流程示意图,本实施例的方法由电子设备执行,如图2所示:2 is a schematic flowchart of Embodiment 1 of a WiFi hotspot Portal authentication method according to the present invention. The method in this embodiment is performed by an electronic device, as shown in FIG. 2:
S201:连接WiFi热点。S201: Connect to a WiFi hotspot.
连接WiFi热点,可以通过但不限于如下两种方式进行连接:To connect to a WiFi hotspot, you can connect through the following two methods:
1、用户手动连接的方式进行连接。2、电子设备自动进行连接。1. The user connects manually by way of connection. 2. The electronic device automatically connects.
其中,通过用户手动连接的方式进行连接的场景如下:The scenario in which the connection is manually connected by the user is as follows:
当用户所持的电子设备处于WiFi热点的信号覆盖范围内时,可以通过搜索,或者查看可用WiFi热点列表的方式,确定可连接的WiFi热点有哪些,从中选择所要连接的WiFi热点进行连接。When the electronic device held by the user is within the coverage of the WiFi hotspot, the WiFi hotspot to be connected may be determined by searching or viewing the list of available WiFi hotspots, and selecting the WiFi hotspot to be connected for connection.
通过电子设备自动进行连接的场景如下: The scenario of automatic connection through an electronic device is as follows:
当用户所持的电子设备处于WiFi热点的信号覆盖范围内时,电子设备自动进行搜索,根据预设规则从搜索到的可用WiFi热点中,选择要连接的WiFi热点进行连接,预设规则可以选择最先连接的WiFi热点进行连接,或者,选择信号强度最强的WiFi热点进行连接,或者,选择接入用户最少的WiFi热点进行连接,对此,本发明不做限制。When the electronic device held by the user is within the signal coverage range of the WiFi hotspot, the electronic device automatically searches, selects the WiFi hotspot to be connected from the searched available WiFi hotspots according to a preset rule, and the preset rule can select the most The first connected WiFi hotspot is connected, or the WiFi hotspot with the strongest signal strength is selected for connection, or the WiFi hotspot with the least access user is selected for connection. The invention is not limited thereto.
S202:启动浏览器,发送Portal认证请求至WiFi热点。S202: Start a browser, and send a Portal authentication request to the WiFi hotspot.
其中,启动浏览器包括在操作系统的前台启动浏览器,或在操作系统的后台启动浏览器。The launching of the browser includes launching the browser in the foreground of the operating system or launching the browser in the background of the operating system.
Portal认证请求为浏览器用于请求访问外部网络的超文本传输协议(HyperText Transfer Protocol,简称:HTTP)请求,外部网络例如可以是任一网络的服务器地址:例如华为的服务器、百度的服务器、360的服务器、腾讯的服务器等。具体地,电子设备发送网页统一资源定位符(Uniform Resoure Locator,简称:URL),网页URL为外部网络的任一网页的URL,例如:https://www.huawei.com,电子设备启动浏览器之后,在地址栏输入“https://www.huawei.com”,以请求访问华为的服务器。The portal authentication request is a Hypertext Transfer Protocol (HTTP) request that the browser requests to access the external network. The external network can be, for example, the server address of any network: for example, Huawei server, Baidu server, 360 Server, Tencent's server, etc. Specifically, the electronic device sends a Uniform Resoure Locator (URL), and the URL of the webpage is a URL of any webpage of the external network, for example, https://www.huawei.com, and the electronic device starts the browser. Then, enter https://www.huawei.com in the address bar to request access to Huawei's server.
服务器接收到HTTP请求后,将反馈一个响应,例如HTTP response,该响应中会携带一个响应码(HTTP response code)。After receiving the HTTP request, the server will feed back a response, such as an HTTP response, which carries a response code (HTTP response code).
通过读取Response Code判断网络属性信息:Determine the network attribute information by reading the Response Code:
例如:在中国大陆,200表示可上网;301/302/303/307表示Portal类型;否则为不可上网;在非中国大陆,204表示可上网;200~399表示Portal类型;否则为不可上网;在非中国大陆,200表示可上网;301/302/303/307表示Portal类型;否则为不可上网。For example, in mainland China, 200 means Internet access; 301/302/303/307 means Portal type; otherwise it is not Internet access; in non-Chinese mainland, 204 means Internet access; 200~399 means Portal type; otherwise it is not available online; For non-Chinese mainland, 200 means Internet access; 301/302/303/307 means Portal type; otherwise it is not available.
假设在中国大陆,若WiFi热点的认证类型为Portal认证,那么接收到HTTP请求后,HTTP response中的响应码为301、302、303或者307,服务器将客户端的HTTP请求重定向至Portal的门户认证地址,Portal认证类型的WiFi热点对应的服务器收到该请求后,将反馈门户认证网页数据,以供电子设备收到该门户认证网页数据后,加载门户认证网页。Assume that in mainland China, if the authentication type of the WiFi hotspot is Portal authentication, the response code in the HTTP response is 301, 302, 303 or 307 after receiving the HTTP request, and the server redirects the HTTP request of the client to the portal authentication of the portal. After receiving the request, the server corresponding to the address authentication type WiFi hotspot will feed back the portal authentication webpage data, so that the electronic device receives the portal authentication webpage data, and then loads the portal authentication webpage.
S203:接收WiFi热点返回的与所述门户认证请求对应的门户认证网页数据。S203: Receive portal authentication webpage data corresponding to the portal authentication request returned by the WiFi hotspot.
S204:通过浏览器加载Portal认证网页数据,确定Portal认证网页数 据中第一参数的位置信息。S204: Load the Portal authentication webpage data through the browser, and determine the number of Portal authentication webpages. According to the location information of the first parameter.
其中,第一参数是指进行Portal认证,所需的预设的参数,例如:可以是手机号、验证码和/或密码等。The first parameter refers to a preset parameter required for performing Portal authentication, for example, a mobile phone number, a verification code, and/or a password.
第一参数的位置信息是可以是标签标识(TagID),或者其他能够标识第一参数在Portal认证网页中的位置的信息均可,对此,本发明不作限制。The location information of the first parameter may be a tag identifier (TagID), or other information that can identify the location of the first parameter in the Portal authentication webpage. The invention is not limited thereto.
其中,确定门户认证网页数据中第一参数的位置信息包括但不限于以下两种实现方式:The location information of the first parameter in the portal authentication webpage data is determined by, but not limited to, the following two implementation manners:
一种可能的实现方式为:从本地预置的数据库中获取第一参数在Portal认证网页数据中的位置信息。A possible implementation manner is: obtaining location information of the first parameter in the Portal authentication webpage data from a locally preset database.
另一种可能的实现方式为:通过解析门户认证网页数据,获取第一参数在Portal认证网页数据中的位置信息。Another possible implementation manner is: obtaining the location information of the first parameter in the Portal authentication webpage data by parsing the portal authentication webpage data.
可选地,当在操作系统的前台启动浏览器时,通过浏览器加载门户认证网页数据之后,还包括:通过浏览器显示门户认证网页数据对应的门户认证网页,即用户可以看到门户认证网页的界面。Optionally, after the browser is started in the foreground of the operating system, after the portal authentication webpage data is loaded by the browser, the method further includes: displaying, by using a browser, a portal authentication webpage corresponding to the portal authentication webpage data, that is, the user can see the portal authentication webpage. Interface.
S205:获取第一参数的取值,将第一参数的取值和第一参数的位置信息进行关联。S205: Acquire a value of the first parameter, and associate the value of the first parameter with the location information of the first parameter.
获取第一参数的取值为电子设备自动执行的过程,无需用户参与。Obtaining the value of the first parameter is an automatic execution process of the electronic device without user participation.
举例来说,第一参数为账号信息,则电子设备通过从SIM卡中读取的方式获取电子设备的账号信息,SIM卡中通常会存储账号信息。或者,从数据库中获取电子设备的账号信息,数据库中的电子设备的账号信息为用户历史输入记录。For example, if the first parameter is the account information, the electronic device obtains the account information of the electronic device by reading from the SIM card, and the account information is usually stored in the SIM card. Alternatively, the account information of the electronic device is obtained from the database, and the account information of the electronic device in the database is a user history input record.
再举例,第一参数为验证码信息,获取第一参数的取值,当获取账号信息之后,先触发点击获取验证码的按钮,发送获取验证码的请求,然后,接收服务器发送的验证码短信,通过语义分析识别验证码短信中的验证码。例如:通过语义分析检测到验证码短信内容中包含特定的关键字,比如:密码、验证码、认证码等;剔除干扰的数字和字母内容,比如日期、电话号码、网址等,获取到验证码,验证解析的验证码是否满足验证码的需求,如验证码要求连续的4~6位数字或字母。For example, the first parameter is the verification code information, and the value of the first parameter is obtained. After obtaining the account information, the button for clicking the verification code is triggered, the request for obtaining the verification code is sent, and then the verification code message sent by the server is received. The semantic verification method is used to identify the verification code in the verification code short message. For example, it is detected by semantic analysis that the content of the verification code message contains specific keywords, such as password, verification code, authentication code, etc.; the interference of the number and letter content, such as date, phone number, website address, etc., is obtained, and the verification code is obtained. To verify whether the parsed verification code meets the requirements of the verification code, such as the verification code requires consecutive 4 to 6 digits or letters.
获取到第一参数的取值之后,将第一参数的取值和第一参数的位置信 息进行关联,即,建立第一参数的取值和第一参数的位置信息的对应关系,如:通过将第一参数的取值赋值给第一参数的位置信息的方式,实现将第一参数的取值填写到第一参数的位置信息中,从而,建立关联关系。After obtaining the value of the first parameter, the value of the first parameter and the position information of the first parameter are obtained. The association is performed, that is, the correspondence between the value of the first parameter and the position information of the first parameter is established, for example, the first parameter is implemented by assigning the value of the first parameter to the position information of the first parameter. The value is filled in the location information of the first parameter, thereby establishing an association relationship.
举例来说,第一参数为账号信息,则将账号信息填写至账号信息的位置信息对应的输入框,第一参数为验证码,则将账号信息填写至验证码的位置信息对应的输入框。从而,建立关联关系。For example, if the first parameter is the account information, the account information is filled in the input box corresponding to the location information of the account information, and the first parameter is the verification code, and the account information is filled in the input box corresponding to the location information of the verification code. Thereby, an association relationship is established.
可选地,当在操作系统的前台启动浏览器时,将第一参数的取值和第一参数的位置信息进行关联之后,还包括:通过浏览器刷新门户认证网页,其中,刷新后的门户认证网页中,第一参数的取值被填写至第一参数的位置信息中。即,向用户显示第一参数的取值被填写到第一参数的位置信息中的界面。进一步地,第一参数的取值被填写至第一参数的位置信息中的过程界面也可以向用户现实,以使电子设备自动执行认证的过程对用户可视。Optionally, after the browser is started in the foreground of the operating system, after the value of the first parameter is associated with the location information of the first parameter, the method further includes: refreshing the portal authentication webpage by using a browser, where the refreshed portal In the authentication webpage, the value of the first parameter is filled in the location information of the first parameter. That is, the user is displayed to the interface in which the value of the first parameter is filled in the position information of the first parameter. Further, the process interface in which the value of the first parameter is filled in the location information of the first parameter may also be realistic to the user, so that the process of automatically performing the authentication by the electronic device is visible to the user.
S206:发送与第一参数的位置信息关联的第一参数的取值至WiFi热点,以完成WiFi热点的门户认证。S206: Send the value of the first parameter associated with the location information of the first parameter to the WiFi hotspot to complete the portal authentication of the WiFi hotspot.
包括但不限于以下两种实现方式:Including but not limited to the following two implementations:
其中,一种实现方式为:接收输入的认证发送指示,认证发送指示用于指示发送与所述第一参数的位置信息关联的第一参数的取值至WiFi热点,发送与第一参数的位置信息关联的第一参数的取值至WiFi热点。其中,接收输入的认证发送指示可以通过用户点击发送对应的按钮来实现。发送对应的按钮可以“登录”按钮、“ok”按钮、“连接”按钮等,对此,本发明不做限制。An implementation manner is: receiving an input authentication sending indication, where the sending sending indication is used to indicate that the value of the first parameter associated with the location information of the first parameter is sent to the WiFi hotspot, and the location of the first parameter is sent. The value of the first parameter associated with the information is to the WiFi hotspot. Wherein, the authentication sending indication of receiving the input can be implemented by the user clicking to send the corresponding button. The corresponding button can be sent, such as a "login" button, an "ok" button, a "connect" button, etc., and the present invention is not limited thereto.
另一种实现方式为:电子设备自动触发执行发送指示,即电子设备自动执行点击发送对应的按钮,发送对应的按钮可以“登录”按钮、“ok”按钮、“连接”按钮等,对此,本发明不做限制。Another implementation manner is: the electronic device automatically triggers execution of the sending indication, that is, the electronic device automatically performs a button corresponding to the click sending, and the corresponding button can be sent by the “login” button, the “ok” button, the “connected” button, etc., The invention is not limited.
本实施例,通过电子设备连接WiFi热点后,启动浏览器,发送Portal认证请求至WiFi热点,接收WiFi热点返回的与Portal认证请求对应的Portal认证网页数据,通过在电子设备上预先安装的浏览器加载Portal认证网页数据,确定Portal认证网页数据中第一参数的位置信息,并获取第一参数的取值,将第一参数的取值和第一参数的位置信息进行关联,将与 第一参数的位置信息关联的第一参数的取值发送至WiFi热点,以完成WiFi热点的Portal认证,在此过程中,由于在获取第一参数的取值,将第一参数的取值和第一参数的位置信息进行关联,其中,第一参数的位置信息是电子设备通过浏览器加载加载Portal认证网页数据确定的,减少Portal认证过程中用户的参与,认证过程简单,因此,提高了Portal认证效率。In this embodiment, after the WiFi hotspot is connected to the electronic device, the browser is started, and the Portal authentication request is sent to the WiFi hotspot, and the Portal authentication webpage data corresponding to the Portal authentication request returned by the WiFi hotspot is received, and the browser is pre-installed on the electronic device. Loading the Portal authentication webpage data, determining the location information of the first parameter in the Portal authentication webpage data, and obtaining the value of the first parameter, and associating the value of the first parameter with the location information of the first parameter, The value of the first parameter associated with the location information of the first parameter is sent to the WiFi hotspot to complete the Portal authentication of the WiFi hotspot. In this process, the value of the first parameter is obtained because the value of the first parameter is obtained. The location information of the first parameter is associated, wherein the location information of the first parameter is determined by the electronic device loading the Portal authentication webpage data by the browser, and the user participation in the Portal authentication process is reduced, and the authentication process is simple. Therefore, the portal is improved. Certification efficiency.
图3为本发明WiFi热点Portal认证方法实施例二的流程示意图,本实施例的方法由电子设备执行,如图2所示:图3以图1所示的Portal认证网页的界面为例,对电子设备自动认证的过程进行描述。在图1所示的认证网页的界面中进行认证所需的第一参数为账号信息和验证码,需要执行的动作为输入账号信息、输入验证码、点击获取验证码按钮和点击登录按钮,获取所需第一参数和需要执行的动作可以全部由电子设备自动执行,也可以部分由电子设备自动执行,对此,本发明不做限制,均能减少认证过程中用户的参与,使得认证过程简单,下面以全部由电子设备自动执行为例:3 is a schematic flowchart of Embodiment 2 of a WiFi hotspot Portal authentication method according to the present invention. The method in this embodiment is performed by an electronic device, as shown in FIG. 2: FIG. 3 is an example of the interface of the Portal authentication webpage shown in FIG. The process of automatic authentication of electronic devices is described. The first parameter required for authentication in the interface of the authentication webpage shown in FIG. 1 is account information and a verification code, and the actions to be performed are input account information, input verification code, click to obtain a verification code button, and click a login button to obtain The required first parameter and the action to be performed may all be automatically performed by the electronic device, or may be automatically executed by the electronic device. For the sake of limitation, the invention can reduce the participation of the user in the authentication process, and the authentication process is simple. The following is an example of automatic execution by electronic devices:
S301:获取账号信息输入框的位置信息、获取验证码按钮的位置信息、验证码输入框的位置信息和登录按钮的位置信息。S301: Obtain location information of the account information input box, obtain location information of the verification code button, location information of the verification code input box, and location information of the login button.
其中,电子设备通过获取Portal认证的网页的HTML内容,对HTML内容进行解析获取“账号信息输入框”的位置信息、“获取验证码按钮”的位置信息、“验证码输入框”的位置信息和“登录按钮”的位置信息。The electronic device obtains the HTML content of the webpage authenticated by the portal, parses the HTML content, obtains the location information of the “account information input box”, the location information of the “acquisition verification code button”, and the location information of the “verification code input box” and Location information for the "login button".
位置信息可以是标签标识(TagID),或者其他能够标识账号信息输入框、验证码按钮、验证码输入框和登录按钮在网页中的位置的信息均可,对此,本发明不作限制。The location information may be a tag identifier (TagID), or other information that can identify the account information input box, the verification code button, the verification code input box, and the location of the login button in the web page. The present invention is not limited thereto.
账号信息可以是手机号码,也可以是其他能够唯一标识电子设备的号码,对此,本发明不作限制。The account information may be a mobile phone number or other number that can uniquely identify the electronic device, and the present invention is not limited thereto.
下面以位置信息为“TagID”为例,分别描述获取“账号信息输入框”的位置信息、“获取验证码按钮”的位置信息、“验证码输入框”的位置信息和“登录按钮”的位置信息的可能的实现方式。The following takes the location information as "TagID" as an example to describe the location information of the "account information input box", the location information of the "acquisition verification code button", the location information of the "authentication code input box", and the location of the "login button". Possible implementation of information.
1)获取“账号信息输入框”的位置信息包括但不限于以下两种实现方式:1) The location information of the "account information input box" is included, but is not limited to the following two implementation modes:
一种可能的实现方式为: One possible implementation is:
通过电子设备本地预置的数据库中得到“账号信息输入框”的TagID。The TagID of the "account information input box" is obtained through a database preset locally by the electronic device.
另一种可能的实现方式为:Another possible implementation is:
过滤超级文本标记协议(HyperText Markup Language,简称:HTML)内容中所有的<input>项,在过滤出<input>项中“value”值或者“placeholder”值与“账号信息”相关的,例如:“value”值或者“placeholder”值为“请输入账号信息”,则认为“value”值或者“placeholder”值与“账号信息”相关;获取“value”值或者“placeholder”值与“账号信息”相关的<input>项的TagID为“账号信息输入框”的TagID;一个<input>项对应一个TagID。Filter all the <input> items in the HyperText Markup Language (HTML) content. In the <input> item, filter the "value" value or the "placeholder" value related to the "account information", for example: The "value" value or the "placeholder" value is "Please enter the account information", and the "value" value or the "placeholder" value is considered to be related to the "account information"; the "value" value or the "placeholder" value and the "account information" are obtained. The TagID of the related <input> item is the TagID of the "Account Information Input Box"; an <input> item corresponds to a TagID.
2)获取“获取验证码按钮”的位置信息包括但不限于以下两种实现方式:2) The location information of obtaining the "acquire verification code button" includes but is not limited to the following two implementation manners:
一种可能的实现方式为:One possible implementation is:
通过电子设备本地预置的数据库中得到“获取验证码按钮”的TagID。The TagID of the "acquire verification code button" is obtained through a database preset locally by the electronic device.
另一种可能的实现方式为:Another possible implementation is:
过滤HTML内容中所有的<input>项,在过滤出<input>项中“value”值或者“placeholder”值与“获取验证码”相关的,例如:“value”值或者“placeholder”值为“获取验证码”,则认为“value”值或者“placeholder”值与“获取验证码”相关;获取“value”值或者“placeholder”值与“获取验证码”相关的<input>项的TagID为“获取验证码按钮”的TagID;一个<input>项对应一个TagID。Filter all <input> items in the HTML content, and filter out the <value> value or the "placeholder" value in the <input> item related to "get verification code", for example: "value" value or "placeholder" value "Get the verification code", then the "value" value or the "placeholder" value is related to the "acquisition verification code"; the "value" value or the "placeholder" value is the "input" item associated with the "acquisition verification code". Get the tag ID of the verification code button; an <input> item corresponds to a TagID.
3)获取“验证码输入框”的位置信息包括但不限于以下两种实现方式:3) Obtain the location information of the "verification code input box" including but not limited to the following two implementation methods:
一种可能的实现方式为:One possible implementation is:
通过电子设备本地预置的数据库中得到“验证码输入框”的TagID。The TagID of the "verification code input box" is obtained through a database preset locally by the electronic device.
另一种可能的实现方式为:Another possible implementation is:
过滤HTML内容中所有的<input>项,在过滤出<input>项中“value”值或者“placeholder”值与“输入验证码”相关的,例如:“value”值或者“placeholder”值为“请输入验证码”,则认为“value”值或者“placeholder”值与“输入验证码”相关;获取“value”值或者“placeholder”值与“输入验证码”相关的<input>项的TagID为“验证码输入框”的TagID;一个<input>项对应一个TagID。 Filter all <input> items in the HTML content, and filter out the <value> value or the "placeholder" value associated with the "input verification code" in the <input> item, for example: "value" value or "placeholder" value Please enter the verification code", then the "value" value or "placeholder" value is related to the "input verification code"; the "value" value or the "placeholder" value is the TagID of the <input> item associated with the "input verification code" TagID of the "verification code input box"; an <input> item corresponds to a TagID.
4)获取“登录按钮”的位置信息包括但不限于以下两种实现方式:4) The location information of the "login button" includes but is not limited to the following two implementations:
一种可能的实现方式为:One possible implementation is:
通过电子设备本地预置的数据库中得到“登录按钮”的TagID。The TagID of the "login button" is obtained from the database preset by the electronic device.
另一种可能的实现方式为:Another possible implementation is:
过滤HTML内容中所有的<input>项,在过滤出<input>项中“value”值或者“placeholder”值与“登录”相关的,例如:“value”值或者“placeholder”值为“登录”,则认为“value”值或者“placeholder”值与“登录”相关;获取“value”值或者“placeholder”值与“登录”相关的<input>项的TagID为“登录按钮”的TagID;一个<input>项对应一个TagID。Filter all <input> items in the HTML content, and filter out the <value> value or the "placeholder" value in the <input> item related to "login", for example: "value" value or "placeholder" value is "login" , the "value" value or the "placeholder" value is related to "login"; the "value" value or the "placeholder" value is associated with the "login" and the TagID of the <input> item is the TagID of the "login button"; The input> item corresponds to a TagID.
需要说明的是,本发明实施例对获取“账号信息输入框”的位置信息、“获取验证码按钮”的位置信息、“验证码输入框”的位置信息和“登录按钮”的位置信息的顺序不做限制,即可以先获取任一一个,以及是通过一次解析获取还是通过多次解析获取,本发明实施例均不做限制。It should be noted that, in the embodiment of the present invention, the position information of the "account information input box", the position information of the "acquisition verification code button", the position information of the "verification code input box", and the position information of the "login button" are obtained. The method of the present invention is not limited, and the method can be used to obtain one of the first ones.
S302:电子设备获取电子设备的账号信息。S302: The electronic device acquires account information of the electronic device.
包括但不限于以下两种实现方式:Including but not limited to the following two implementations:
其中,一种可能的实现方式为:Among them, one possible implementation is:
电子设备从SIM卡中读取电子设备的账号信息,SIM卡中通常会存储账号信息。The electronic device reads the account information of the electronic device from the SIM card, and the account information is usually stored in the SIM card.
另一种可能的现实方式为:Another possible way of reality is:
电子设备从数据库中获取电子设备的账号信息,数据库中的电子设备的账号信息为用户历史输入记录。The electronic device acquires account information of the electronic device from the database, and the account information of the electronic device in the database is a user history input record.
S303:电子设备将账号信息填写至账号信息输入框的位置信息对应的输入框。S303: The electronic device fills in the account information into an input box corresponding to the location information of the account information input box.
利用JavaScript,执行“getElementByID”函数,获取对应元素,对目标元素的value进行赋值。即,利用JavaScript,执行“getElementByID”函数,获取“账号信息输入框”,对“账号信息输入框”的value赋值为“账号信息”,从而,实现电子设备自动将账号信息填写账号信息输入框的位置信息对应的输入框,无需用户手动输入。Using JavaScript, execute the "getElementByID" function to get the corresponding element and assign the value of the target element. That is, using JavaScript, executing the "getElementByID" function, obtaining the "account information input box", and assigning the value of the "account information input box" to "account information", thereby realizing that the electronic device automatically fills the account information into the account information input box. The input box corresponding to the location information does not need to be manually input by the user.
S304:电子设备点击获取验证码按钮的位置信息对应的按钮。 S304: The electronic device clicks a button corresponding to the location information of the verification code button.
利用JavaScript,执行“getElementByID”函数,获取对应元素,对目标元素执行点击(onclick)事件。即,利用JavaScript,执行“getElementByID”函数,获取“获取验证码按钮”,对“获取验证码按钮”执行onclick事件,从而实现电子设备自动点击获取验证码按钮,无需用户手动点击。Using JavaScript, execute the "getElementByID" function to get the corresponding element and perform an onclick event on the target element. That is, using JavaScript, the "getElementByID" function is executed, the "acquisition verification code button" is obtained, and the onclick event is executed on the "acquisition verification code button", so that the electronic device automatically clicks the acquisition verification code button, without the user having to manually click.
S305:电子设备获取验证码。S305: The electronic device obtains a verification code.
电子设备接收服务器发送的验证码短信之后;通过语义分析识别验证码短信中的验证码。例如:通过语义分析检测到验证码短信内容中包含特定的关键字,比如:密码、验证码、认证码等;剔除干扰的数字和字母内容,比如日期、电话号码、网址等,获取到验证码,验证解析的验证码是否满足验证码的需求,如验证码要求连续的4~6位数字或字母。After the electronic device receives the verification code short message sent by the server, the verification code in the verification code short message is identified through semantic analysis. For example, it is detected by semantic analysis that the content of the verification code message contains specific keywords, such as password, verification code, authentication code, etc.; the interference of the number and letter content, such as date, phone number, website address, etc., is obtained, and the verification code is obtained. To verify whether the parsed verification code meets the requirements of the verification code, such as the verification code requires consecutive 4 to 6 digits or letters.
S306:电子设备将验证码填写至验证码输入框的位置信息对应的输入框。S306: The electronic device fills in the verification code to the input box corresponding to the location information of the verification code input box.
利用JavaScript,执行“getElementByID”函数,获取对应元素,对目标元素执行value进行赋值,即,利用JavaScript,执行“getElementByID”函数,获取“验证码输入框”,对“验证码输入框”的value赋值为“验证码”,从而实现电子设备自动填写验证码,无需用户手动输入。Using JavaScript, execute the "getElementByID" function, get the corresponding element, and assign the value to the target element. That is, use JavaScript to execute the "getElementByID" function, get the "verification code input box", and assign the value of the "verification code input box". It is a "verification code", so that the electronic device automatically fills in the verification code without manual input by the user.
S307:电子设备点击登录按钮的位置信息对应的按钮,以完成WiFi热点的Portal认证。S307: The electronic device clicks a button corresponding to the location information of the login button to complete Portal authentication of the WiFi hotspot.
利用JavaScript,执行“getElementByID”函数,获取对应元素,对目标元素执行onclick事件,即,利用JavaScript,执行“getElementByID”函数,获取“登录按钮”,对“登录按钮”执行onclick事件,从而实现电子设备自动点击登录按钮,无需用户手动输入。完成WiFi热点的Portal认证。Using JavaScript, execute the "getElementByID" function, get the corresponding element, and execute the onclick event on the target element. That is, use JavaScript to execute the "getElementByID" function, get the "login button", and execute the onclick event on the "login button" to implement the electronic device. Automatically click on the login button without the user having to manually enter it. Complete Portal authentication for WiFi hotspots.
本实施例,通过获取账号信息输入框的位置信息、获取验证码按钮的位置信息、验证码输入框的位置信息和登录按钮的位置信息;并获取电子设备的账号信息,将账号信息填写账号信息输入框的位置信息对应的输入框;点击获取验证码按钮的位置信息对应的按钮,获取验证码并将验证码填写验证码输入框的位置信息对应的输入框;点击登录按钮的位置信息对应的按钮,以完成WiFi热点的Portal认证。在此过程中,无需用户参与,实现电子设备自动完成Portal认证,因此,提高了Portal认证效率,以及提 高了用户体验。In this embodiment, the location information of the account information input box, the location information of the verification code button, the location information of the verification code input box, and the location information of the login button are obtained; and the account information of the electronic device is acquired, and the account information is filled in the account information. Enter the input box corresponding to the position information of the box; click the button corresponding to the position information of the verification code button to obtain the verification code and fill in the verification code with the input box corresponding to the position information of the verification code input box; click the position information corresponding to the login button Button to complete Portal authentication for WiFi hotspots. In this process, the user does not need to participate in the operation, and the electronic device automatically completes the Portal authentication. Therefore, the Portal authentication efficiency is improved, and High user experience.
图4为本发明WiFi热点Portal认证方法实施例三的流程示意图,图4是在图3所示实施例的基础上,执行S301之前,进一步地还可以包括S401~S403或S402~S403,如图4所示:4 is a schematic flowchart of Embodiment 3 of a WiFi hotspot Portal authentication method according to the present invention. FIG. 4 is a schematic diagram of the embodiment shown in FIG. 3, and before performing S301, further including S401-S403 or S402-S403, as shown in FIG. 4 shows:
S401:电子设备确定已连接WiFi热点。S401: The electronic device determines that the WiFi hotspot is connected.
通常,电子设备可以通过搜索确定可用的WiFi热点,并向用户显示,以被用户选择,用户通过点击或者其他方式确定要连接的WiFi热点,电子设备确定已WiFi热点之后,触发自动执行S402。Generally, the electronic device can determine the available WiFi hotspot by searching and display it to the user to be selected by the user. The user determines the WiFi hotspot to be connected by clicking or other means. After the electronic device determines that the WiFi hotspot has been determined, the automatic execution S402 is triggered.
S402:电子设备发送访问请求。S402: The electronic device sends an access request.
其中,访问请求用于请求访问外部网络。Among them, the access request is used to request access to the external network.
此步骤的详细描述参见S202,此处不再赘述。For a detailed description of this step, refer to S202, and details are not described here.
S403:电子设备根据访问请求对应的访问响应,确定所连接的WiFi热点的认证方式为Portal认证。S403: The electronic device determines, according to the access response corresponding to the access request, that the authentication mode of the connected WiFi hotspot is Portal authentication.
当WiFi热点的认证方式为Portal认证时,还未进行认证前,电子设备无法访问外部网络,当电子设备发送访问外部网络的访问请求之后,会自动跳转到Portal认证网页。当WiFi热点的认证方式不为Portal认证,当电子设备发送访问外部网络的访问请求时,则不会跳转到Portal认证网页,因此,可以通过若访问请求对应的访问响应为跳转到Portal认证网页,则确定所连接的WiFi热点的认证方式为Portal认证。When the authentication mode of the WiFi hotspot is Portal authentication, the electronic device cannot access the external network before the authentication is performed. When the electronic device sends an access request to access the external network, it will automatically jump to the Portal authentication page. When the authentication method of the WiFi hotspot is not Portal authentication, when the electronic device sends an access request to access the external network, it does not jump to the Portal authentication page. Therefore, the access response corresponding to the access request can be redirected to Portal authentication. The webpage determines that the authentication mode of the connected WiFi hotspot is Portal authentication.
本实施例,通过电子设备在执行图3所示实施例的步骤之前,确定已连接WiFi热点之后,触发发送访问外部网络的访问请求,根据访问请求对应的访问响应,确定所连接的WiFi热点的认证方式为门户Portal认证,实现对接入WiFi热点的认证方式的识别,当为Portal认证时,再执行图3所示实施例的步骤,实现电子设备自动完成Portal认证,因此,提高了Portal认证效率,以及提高了用户体验。In this embodiment, before the step of the embodiment shown in FIG. 3 is performed, the electronic device determines that the access request to the external network is sent after the WiFi hotspot is connected, and determines the connected WiFi hotspot according to the access response corresponding to the access request. The authentication mode is Portal Portal authentication, which implements the authentication method for accessing the WiFi hotspot. When the Portal authentication is performed, the steps of the embodiment shown in Figure 3 are executed to implement the Portal authentication automatically. Therefore, the Portal authentication is improved. Efficiency and improved user experience.
图5为本发明WiFi热点Portal认证装置实施例一的结构示意图,本实施例的装置部署于电子设备中,该电子设备中包括预先安装的操作系统和浏览器,浏览器运行于操作系统上,该装置包括:发送模块501、接收模块502和处理模块503,其中,发送模块501用于连接WiFi热点;发送模块501还用于启动浏览器,发送门户认证请求至WiFi热点;接收模块502
用于接收WiFi热点返回的与门户认证请求对应的门户认证网页数据;处理模块503,还用于通过浏览器加载门户认证网页数据,确定门户认证网页数据中第一参数的位置信息;处理模块503还用于获取第一参数的取值,将第一参数的取值和第一参数的位置信息进行关联;发送模块501还用于发送与第一参数的位置信息关联的第一参数的取值至WiFi热点,以完成WiFi热点的门户认证。5 is a schematic structural diagram of Embodiment 1 of a WiFi hotspot Portal authentication device according to the present invention. The device in this embodiment is deployed in an electronic device, where the electronic device includes a pre-installed operating system and a browser, and the browser runs on the operating system. The device includes: a sending
在上述实施例中,发送模块501用于启动浏览器具体包括:在操作系统的前台启动浏览器,或在操作系统的后台启动浏览器。In the above embodiment, the sending
在上述实施例中,发送模块501用于启动浏览器具体包括:在操作系统的前台启动浏览器;In the above embodiment, the sending
装置还包括:The device also includes:
显示模块504,用于处理模块通过浏览器加载门户认证网页数据之后,通过浏览器显示门户认证网页数据对应的门户认证网页;The
显示模块504还用于处理模块将第一参数的取值和第一参数的位置信息进行关联之后,通过浏览器刷新门户认证网页,其中刷新后的门户认证网页中,第一参数的取值被填写至第一参数的位置信息中。The
在上述实施例中,接收模块502还用于发送模块发送与第一参数的位置信息关联的第一参数的取值至WiFi热点,以完成WiFi热点的门户认证之前,接收输入的认证发送指示,认证发送指示用于指示发送与第一参数的位置信息关联的第一参数的取值至WiFi热点。In the foregoing embodiment, the receiving
在上述实施例中,处理模块503用于通过浏览器加载门户认证网页数据,确定门户认证网页数据中第一参数的位置信息具体包括:从本地预置的数据库中获取第一参数在门户认证网页数据中的位置信息;或者:通过解析门户认证网页数据,获取第一参数在门户认证网页数据中的位置信息。In the above embodiment, the
在上述实施例中,第一参数包括:账号信息和/或验证码;In the above embodiment, the first parameter includes: account information and/or a verification code;
处理模块503用于将第一参数的取值和第一参数的位置信息进行关联具体包括:将账号信息填写至账号信息的位置信息对应的输入框;和/或,将验证码填写至验证码的位置信息对应的输入框。The
在上述实施例中,处理模块503用于获取第一参数的取值具体包括:
从SIM卡中读取账号信息;或者,从数据库中获取账号信息,数据库中的账号信息为用户历史输入记录。In the foregoing embodiment, the obtaining, by the
在上述实施例中,处理模块503用于获取第一参数的取值具体包括接收服务器发送的验证码短信;通过语义分析识别验证码短信中的验证码。In the above embodiment, the
上述装置实施例的各模块对应地可用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The modules of the foregoing device embodiments are correspondingly used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principles and technical effects are similar, and details are not described herein again.
图6为本发明WiFi热点Portal认证装置实施例二的结构示意图,装置部署于电子设备中,电子设备中包括预先安装的操作系统和浏览器,浏览器运行于操作系统上,包括通信接口601、存储器603和处理器602和通信总线604,其中,通信接口601、存储器603和处理器602通过通信总线604通信;存储器603存储计算机程序代码;FIG. 6 is a schematic structural diagram of Embodiment 2 of a WiFi hotspot Portal authentication apparatus according to the present invention. The device is deployed in an electronic device, where the electronic device includes a pre-installed operating system and a browser, and the browser runs on the operating system, including the
通信接口601用于连接WiFi热点;启动浏览器,发送门户认证请求至WiFi热点;接收WiFi热点返回的与门户认证请求对应的门户认证网页数据;The
处理器602在调用计算机程序代码时,执行以下处理过程:The
通过浏览器加载门户认证网页数据,确定门户认证网页数据中第一参数的位置信息;Loading the portal authentication webpage data through the browser to determine location information of the first parameter in the portal authentication webpage data;
获取第一参数的取值,将第一参数的取值和第一参数的位置信息进行关联。The value of the first parameter is obtained, and the value of the first parameter is associated with the location information of the first parameter.
通信接口601还用于发送与第一参数的位置信息关联的第一参数的取值至WiFi热点,以完成WiFi热点的门户认证。The
上述装置实施例的各模块对应地可用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The modules of the foregoing device embodiments are correspondingly used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principles and technical effects are similar, and details are not described herein again.
图7为本发明WiFi热点Portal认证装置实施例三的结构示意图,该装置部署在电子设备中,电子设备以手机为例,如图7所示。参照图7,电子设备700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)接口712,传感器组件714,以及通信组件716。FIG. 7 is a schematic structural diagram of Embodiment 3 of a WiFi hotspot Portal authentication apparatus according to the present invention. The apparatus is deployed in an electronic device, and the electronic device takes a mobile phone as an example, as shown in FIG. 7 . Referring to FIG. 7,
处理组件702通常控制电子设备700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件702可以
包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。
存储器704被配置为存储各种类型的数据以支持在电子设备700的操作。这些数据的示例包括用于在电子设备700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件706为电子设备700的各种组件提供电力。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为电子设备700生成、管理和分配电力相关联的组件。Power component 706 provides power to various components of
多媒体组件708包括在电子设备700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当电子设备700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The
音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当电子设备700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。The
输入/输出接口712为处理组件702和外围接口模块之间提供接口,
上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。Input/
传感器组件714包括一个或多个传感器,用于为电子设备700提供各个方面的状态评估。例如,传感器组件714可以检测到电子设备700的打开/关闭状态,组件的相对定位,例如所述组件为电子设备700的显示器和小键盘,传感器组件714还可以检测电子设备700或电子设备700一个组件的位置改变,用户与电子设备700接触的存在或不存在,电子设备700方位或加速/减速和电子设备700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件716被配置为便于电子设备700和其他设备之间有线或无线方式的通信。电子设备700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,电子设备600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, electronic device 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), A gated array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由电子设备700的处理器760执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存
储器(ROM),磁存储器,快闪存储器,磁盘或光盘。In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a
一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行一种WiFi热点Portal认证方法,所述方法包括:A non-transitory computer readable storage medium, when an instruction in the storage medium is executed by a processor of an electronic device, enabling the electronic device to perform a WiFi hotspot Portal authentication method, the method comprising:
连接所述WiFi热点;Connecting the WiFi hotspot;
启动所述浏览器,发送门户认证请求至所述WiFi热点;Launching the browser, and sending a portal authentication request to the WiFi hotspot;
接收所述WiFi热点返回的与所述门户认证请求对应的门户认证网页数据;Receiving, by the WiFi hotspot, the portal authentication webpage data corresponding to the portal authentication request;
通过所述浏览器加载所述门户认证网页数据,确定所述门户认证网页数据中第一参数的位置信息;Loading the portal authentication webpage data by the browser, and determining location information of the first parameter in the portal authentication webpage data;
自动获取所述第一参数的取值,将所述第一参数的取值和所述第一参数的位置信息进行关联;Automatically acquiring the value of the first parameter, and associating the value of the first parameter with the location information of the first parameter;
发送与所述第一参数的位置信息关联的所述第一参数的取值至所述WiFi热点,以完成所述WiFi热点的门户认证。And sending the value of the first parameter associated with the location information of the first parameter to the WiFi hotspot to complete portal authentication of the WiFi hotspot.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.
Claims (17)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2016/078341 WO2017166297A1 (en) | 2016-04-01 | 2016-04-01 | Wifi hotpot portal authentication method and device |
| CN201680024879.0A CN107534860A (en) | 2016-04-01 | 2016-04-01 | Wi-Fi hotspot portal authentication method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2016/078341 WO2017166297A1 (en) | 2016-04-01 | 2016-04-01 | Wifi hotpot portal authentication method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017166297A1 true WO2017166297A1 (en) | 2017-10-05 |
Family
ID=59962493
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/078341 Ceased WO2017166297A1 (en) | 2016-04-01 | 2016-04-01 | Wifi hotpot portal authentication method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107534860A (en) |
| WO (1) | WO2017166297A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108135000A (en) * | 2018-03-05 | 2018-06-08 | 上海连尚网络科技有限公司 | A kind of authentication method and equipment |
| CN110808976A (en) * | 2019-10-31 | 2020-02-18 | 厦门亿联网络技术股份有限公司 | WIFI-BT information authentication method, system, readable storage medium and IP phone |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113207123B (en) * | 2021-04-28 | 2023-05-26 | 展讯通信(上海)有限公司 | Wireless network access method and device based on browser, storage medium and terminal |
| CN114666364A (en) * | 2022-03-10 | 2022-06-24 | 中国第一汽车股份有限公司 | Vehicle-mounted internet access method and device based on Portal authentication network and vehicle |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103812822A (en) * | 2012-11-06 | 2014-05-21 | 阿里巴巴集团控股有限公司 | Method and system for safety certificate |
| CN104144415A (en) * | 2014-07-10 | 2014-11-12 | 深圳市螺光科技有限公司 | Method for connecting WiFi access point and mobile communication terminal |
| CN104378758A (en) * | 2014-05-12 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Access point connecting method, terminal and server |
| CN104955005A (en) * | 2014-03-26 | 2015-09-30 | 阿里巴巴集团控股有限公司 | Method and device for depositing for communication terminal |
| CN105007581A (en) * | 2015-08-12 | 2015-10-28 | 腾讯科技(深圳)有限公司 | Network access authentication method and network access authentication client |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1760983B1 (en) * | 2005-09-02 | 2013-02-27 | Swisscom AG | Method and system for providing media content to a user |
| CN104734908B (en) * | 2006-03-02 | 2018-07-27 | 诺基亚技术有限公司 | It supports to access purpose network via Radio Access Network |
| CN102378175A (en) * | 2011-10-08 | 2012-03-14 | 华为终端有限公司 | Wireless local area network (WLAN) authentication method and mobile terminal |
| CN104113837A (en) * | 2013-04-22 | 2014-10-22 | 中兴通讯股份有限公司 | Method and device for access authentication of wireless local area network |
| CN103428700A (en) * | 2013-07-26 | 2013-12-04 | 中国联合网络通信集团有限公司 | Business authentication method and device |
| CN103747000B (en) * | 2014-01-13 | 2017-08-25 | 深信服科技股份有限公司 | Access the authentication method and device of wireless network |
-
2016
- 2016-04-01 CN CN201680024879.0A patent/CN107534860A/en active Pending
- 2016-04-01 WO PCT/CN2016/078341 patent/WO2017166297A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103812822A (en) * | 2012-11-06 | 2014-05-21 | 阿里巴巴集团控股有限公司 | Method and system for safety certificate |
| CN104955005A (en) * | 2014-03-26 | 2015-09-30 | 阿里巴巴集团控股有限公司 | Method and device for depositing for communication terminal |
| CN104378758A (en) * | 2014-05-12 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Access point connecting method, terminal and server |
| CN104144415A (en) * | 2014-07-10 | 2014-11-12 | 深圳市螺光科技有限公司 | Method for connecting WiFi access point and mobile communication terminal |
| CN105007581A (en) * | 2015-08-12 | 2015-10-28 | 腾讯科技(深圳)有限公司 | Network access authentication method and network access authentication client |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108135000A (en) * | 2018-03-05 | 2018-06-08 | 上海连尚网络科技有限公司 | A kind of authentication method and equipment |
| CN110808976A (en) * | 2019-10-31 | 2020-02-18 | 厦门亿联网络技术股份有限公司 | WIFI-BT information authentication method, system, readable storage medium and IP phone |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107534860A (en) | 2018-01-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6214812B2 (en) | Transfer processing method and apparatus | |
| TWI528282B (en) | Method for customizing launching of applications | |
| CN106603667B (en) | Screen information sharing method and device | |
| CN106170004B (en) | Method and device for processing verification code | |
| CN106547904B (en) | Cross-account information sharing method and device | |
| CN105072178B (en) | Cell-phone number binding information acquisition methods and device | |
| CN117390330A (en) | Webpage access method and device | |
| WO2016061769A1 (en) | Verification information transmission method and terminal | |
| US20170171321A1 (en) | Methods and devices for managing accounts | |
| CN107203398B (en) | Application distribution method and device | |
| KR101852244B1 (en) | Recommendation information acquisition method, terminal, server, program, and recording medium | |
| US11004163B2 (en) | Terminal-implemented method, server-implemented method and terminal for acquiring certification document | |
| CN109525652B (en) | Information sharing method, apparatus, device and storage medium | |
| CN106600367A (en) | Order information processing method and order information processing device | |
| CN106293961B (en) | Text information processing method and device | |
| CN114596131A (en) | Commodity information processing method and device and electronic equipment | |
| WO2017166297A1 (en) | Wifi hotpot portal authentication method and device | |
| CN105808304B (en) | Code deployment method, device and system | |
| US9667424B2 (en) | Methods and apparatuses for binding token key to account | |
| CN104050236B (en) | Web site contents update reminding method, server and client side | |
| EP3068097B1 (en) | Method and device for filtering information | |
| CN105808767A (en) | Data updating method and apparatus | |
| JP6441385B2 (en) | Information input method, apparatus, program, and recording medium | |
| CN105630948B (en) | Network page display method and device | |
| RU2621293C2 (en) | Method for granting permission, method for obtaining permission and corresponding devices |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16896076 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16896076 Country of ref document: EP Kind code of ref document: A1 |