Abstract:
In a router, for example, after receiving an HTTP request communicated by a terminal device, the router can determine whether the terminal device has accessed a target webpage through that device, according to identity information of the terminal device included in the HTTP request. Where it is determined that the terminal device has accessed the webpage through the router, an HTTP response message including a URL address of the target webpage can be communicated to the terminal device. Otherwise, an HTTP response message including a URL address of an intermediate webpage of the target webpage can be communicated to the terminal device. Determining that the terminal device has accessed a target webpage through the router provides for the terminal device to bypass the intermediate page and directly access the target page; thus, control to accessing the target webpage is facilitated by the router.
Abstract:
A method for informing a connection condition between an external device and a router, includes: monitoring whether a predetermined event occurs, the predetermined event being one of connecting the external device to the router or disconnecting the external device from the router; determining a registered port of a plugin of the router from one or more ports of a plugin center, if the predetermined event occurs; and sending to the plugin, through the registered port of the plugin, a first notification to indicate that the predetermined event occurs.
Abstract:
The present disclosure relates to a method and a device for sharing data, which relates to the field of communication. The method includes: monitoring an event of a removable storage device being plugged into the DLNA device; acquiring a mount path of the removable storage device through a DLNA server configured in the DLNA device, when the event of the removable storage device being plugged into the DLNA device has occurred; and sharing data in the removable storage device according to the mount path through the DLNA server.