METHODS AND SYSTEMS FOR JAVA SCRIPT PARSING
First Claim
1. A method of parsing a script within an HTML page, the method comprising:
- receiving a script object, wherein the script object includes text;
parsing the text of the script object for tokens;
comparing the parsed tokens with a valid tokens list to determine locations within the text of the script object that include potential universal resource locators (URLs);
parsing before and after the determined locations until complete URLs are constructed;
forwarding the complete URLs to a detector, wherein the detector determines whether the complete URLs are valid; and
sending object retrieval requests to websites associated with the valid complete URLs.
6 Assignments
0 Petitions
Accused Products
Abstract
The present invention relates to systems, apparatus, and methods of parsing a script within an HTML page. The method includes receiving a script object, where the script object includes text. The method further includes parsing the text of the script object for tokens and comparing the parsed tokens with a valid tokens list to determine locations within the text of the script object that include potential universal resource locators (URLs). The method includes parsing before and after the determined locations until complete URLs are constructed, and forwarding the complete URLs to a detector. The detector then determines whether the complete URLs are valid. The method then sends object retrieval requests to websites associated with the valid complete URLs.
-
Citations
20 Claims
-
1. A method of parsing a script within an HTML page, the method comprising:
-
receiving a script object, wherein the script object includes text; parsing the text of the script object for tokens; comparing the parsed tokens with a valid tokens list to determine locations within the text of the script object that include potential universal resource locators (URLs); parsing before and after the determined locations until complete URLs are constructed; forwarding the complete URLs to a detector, wherein the detector determines whether the complete URLs are valid; and sending object retrieval requests to websites associated with the valid complete URLs. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system for accelerating network communications, the system comprising:
-
a client system including a proxy client configured to intercept a content request generated by the client, and to transmit the request; a proxy server coupled with the client system via the proxy client, the proxy server including a script parser configured to receive a script object, wherein the script object includes text, to parse the text of the script object for tokens, to compare the parsed tokens with a valid tokens list to determine locations within the text of the script object that include potential universal resource locators (URLs), and to parse before and after the determined locations until complete URLs are constructed, wherein the proxy server further includes a detector which is configured to receive the complete URLs to determine whether the complete URLs are valid; and a content server coupled with the proxy server, the content server configured to receive object retrieval requests associated with the valid complete URLs from the proxy server, and transmit objects associated with the valid completed URLs to the proxy server. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A script parser for parsing script objects, the script parser comprising:
-
a syntax dictionary configured to receive script text, and to compare portions of the received script text with a valid tokens list to determine locations within the text of the script object that include potential universal resource locators (URLs); and a URL rules detector coupled with the syntax dictionary, the URL rules detector configured to determine whether the complete URLs are valid. - View Dependent Claims (17, 18, 19)
-
-
20. A machine-readable medium for parsing script files including sets of instructions stored thereon which, when executed by a machine, cause the machine to:
-
receive a script object, wherein the script object includes text; parse the text of the script object for tokens; compare the parsed tokens with a valid tokens list to determine locations within the text of the script object that include potential URLs; parse before and after the determined locations until complete URLs are constructed; forward the complete URLs to a detector, wherein the detector determines whether the complete URLs are valid; and send object retrieval requests to websites associated with the valid complete URLs.
-
Specification