Original Post
So there's a game I wish to build that requires me to intercept the HTTP request from a browser.
Here's how I understand an HTTP request works:
-User types in a URL or clicks on hyperlink.
-Browser sends request over wire.
-Server returns the request with a HTTP and javascript (AJAX?)
-Browser renders file.
What I want to do is the following:
-Whenever a HTTP request is made, I intercept the request to get the URL.
-Check the URL to see if the site is somewhere on a database that carries a list of all URLs and "game objects" stored on the URL. (Part of the game allows users to leave "objects" like bombs and doors on a page)
-Get the actual HTTP/javascript from the page but do not send to browser
-Modify the HTTP/javascript to display game objects on page and floaties that allow the user to do certain actions like leave objects or interact with objects
-Send modified HTTP/javascript to browser for rendering
What technologies are available for this kind of functionality? Preferably in Java.
Here's how I understand an HTTP request works:
-User types in a URL or clicks on hyperlink.
-Browser sends request over wire.
-Server returns the request with a HTTP and javascript (AJAX?)
-Browser renders file.
What I want to do is the following:
-Whenever a HTTP request is made, I intercept the request to get the URL.
-Check the URL to see if the site is somewhere on a database that carries a list of all URLs and "game objects" stored on the URL. (Part of the game allows users to leave "objects" like bombs and doors on a page)
-Get the actual HTTP/javascript from the page but do not send to browser
-Modify the HTTP/javascript to display game objects on page and floaties that allow the user to do certain actions like leave objects or interact with objects
-Send modified HTTP/javascript to browser for rendering
What technologies are available for this kind of functionality? Preferably in Java.