A method for transparent in-network adaptation of Rich Internet Application, RIA, content using an Internet gateway, the method comprising: receiving a first request for a web page that is configured to be displayed in a web browser on a mobile device; and communicating with a web server to receive a first response to the first request, wherein the first response includes a reference to an RIA file; characterised in that the method further comprises: modifying the first response by inserting a reference to an RIA discovery script, wherein the RIA discovery script replaces an RIA instance on the web browser with an inline HTML frame; providing the modified first response to the web browser, wherein information from the modified first response triggers an execution of the RIA discovery script; receiving, based on the execution of the RIA discovery script, a second request for a Uniform Resource Locator, URL, of the RIA file and parameters used to instantiate the RIA file; processing the second request by communicating with the web server to acquire the RIA file and the parameters used to instantiate the RIA file; adapting the RIA content of the RIA file for display in the web browser without requiring an RIA player at the mobile device; and providing adapted RIA content to the web browser for display within the inline HTML frame. receiving a first request for a web page that is configured to be displayed in a web browser on a mobile device; and communicating with a web server to receive a first response to the first request, wherein the first response includes a reference to an RIA file; characterised in that the method further comprises: modifying the first response by inserting a reference to an RIA discovery script, wherein the RIA discovery script replaces an RIA instance on the web browser with an inline HTML frame; providing the modified first response to the web browser, wherein information from the modified first response triggers an execution of the RIA discovery script; receiving, based on the execution of the RIA discovery script, a second request for a Uniform Resource Locator, URL, of the RIA file and parameters used to instantiate the RIA file; processing the second request by communicating with the web server to acquire the RIA file and the parameters used to instantiate the RIA file; adapting the RIA content of the RIA file for display in the web browser without requiring an RIA player at the mobile device; and providing adapted RIA content to the web browser for display within the inline HTML frame. modifying the first response by inserting a reference to an RIA discovery script, wherein the RIA discovery script replaces an RIA instance on the web browser with an inline HTML frame; providing the modified first response to the web browser, wherein information from the modified first response triggers an execution of the RIA discovery script; receiving, based on the execution of the RIA discovery script, a second request for a Uniform Resource Locator, URL, of the RIA file and parameters used to instantiate the RIA file; processing the second request by communicating with the web server to acquire the RIA file and the parameters used to instantiate the RIA file; adapting the RIA content of the RIA file for display in the web browser without requiring an RIA player at the mobile device; and providing adapted RIA content to the web browser for display within the inline HTML frame.