1. Technical Field
The present disclosure relates to internet access systems, and particularly, to an internet access system capable of assisting a portable computer to access internet through a mobile device and a method for accessing internet.
2. Description of Related Art
Electronic devices, such as computers, can access a web page through a cable network. However, when a cable network is not available, and no wireless network card is installed, it is difficult for a user to access a web page. Although a mobile device does not depend on the wireless network card and can wirelessly access a web page, the display unit of the mobile device is small, which may be inconvenient to view the web page. Therefore, it is desirable to provide an internet access system to resolve the above problems.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
The embodiments of the present disclosure are described with reference to the accompanying drawings.
The response module 101 is operable to transmit a request to the mobile device 30 through the first communication unit 13 in response to a user request for a target web page. The web page generating module 102 is operable to receive source code of the target web page from the mobile device 30 through the first communication unit 13, and generate a web page according to the source code. The display control module 103 is operable to control the display unit 12 to display the generated web page.
In the embodiment, the computer 10 further includes an encoding module 104 and a decrypting module 105. Before the response module 101 transmits the request to the mobile device 30 through the first communication unit 13, the encoding module 104 encodes the request. And before the web page generating module 102 generates the web page, the decrypting module 105 decrypts the received source code.
In the embodiment, the computer 10 further includes a network unit 14 and a determining module 106. The network unit 14 communicates with the internet server 20 through the second network 50. The determining module 106 is operable to determine whether the second network 50 is available. If the second network 50 is available, the response module 101 is operable to directly access the internal server 20 through the network unit 14, to obtain the source code of the target web page. Otherwise, the response module 101 is operable to transmit the request to the mobile device 30 through the first communication unit 13.
In the embodiment, the computer 10 further includes an adjusting module 107. The adjusting module 107 is operable to adjust the aspect ratio of the web page, the size of the web page, and so on.
The analyzing module 301 is operable to receive the request from the second communication unit 32, and analyze the request to obtain an internet address of the target web page. The obtaining module 302 is operable to access the target web page on the internet server 20 according to the internet address through the third communication unit 33, obtain the source code of the target web page from the internet server 20, and transmit the obtained source code through the second communication unit 32 to the first communication unit 13.
In the embodiment, the mobile device 30 further includes a decoding module 303 and an encrypting module 304. Before the analyzing module 301 analyzes the request, the decoding module 303 decodes the received request. Before the obtaining module 302 transmits the source code through the third communication 32 to the first communication unit 13, the encrypting module 304 encrypts the obtained source code.
In step S401, the response module 101 transmits a request through the first communication unit 13 to the second communication unit 32 in response to a user request for a target web page.
In step S402, the analyzing module 301 analyzes the request from the second communication unit 32 to obtain an internet address of the target web page.
In step S403, the obtaining module 302 accesses the target web page on an internet server 20 according to the internet address through the third communication unit 33, obtains source code of the target web page from the internet server 20, and transmits the obtained source code through the second communication unit 32 to the first communication unit 13.
In step S404, the web page generating module 102 generates a web page according to the source code from the first communication unit 13.
In step S405, the display control module 103 controls the display unit 12 to display the generated web page.
In the embodiment, the procedure of determining whether a second network 50 is available is executed before the response module 101 transmits the request through the first communication unit 13 to the second communication unit 32.
In detail, the determining module 106 determines whether the second network 50 is available in response to user request for a target web page. When the second network 50 is available, the response module 101 accesses the internet server 20 through the network unit 14, to obtain the source code of the target web page. When the second network 50 is not available, the response module 101 transmits the request through the first communication unit 13 to the second communication unit 32.
In the embodiment, the step that the encoding module 104 encodes the request is executed before transmitting the request through the first communication unit 13 to the second communication unit 32, and the step that the decoding module 303 decodes the received request is executed before analyzing the request to obtain the internet address of the target web page.
In the embodiment, the step that the encrypting module 304 encrypts the source code of the target web page is executed before transmitting the obtained source code through the second communication unit 32 to the first communication unit 13, and the step that the decrypting module 105 decrypts the source code is executed before controlling the web page generating module 102 to generate a web page.
In the embodiment, the step that the adjusting module 107 adjusts the aspect ratio of the web page, or the size of the web page is executed before the procedure of controlling the display unit 12 to display the web page.
Although the present disclosure has been described on the basis of an exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201210087156.9 | Mar 2012 | CN | national |