Methods and systems for javascript 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 to determine whether the parsed text matches tokens included in a syntax dictionary, the matching tokens corresponding in the syntax dictionary with syntax identified as useful in constructing universal resource locators (URLs);
parsing the text of the script object before and after the matching tokens in accordance with the corresponding syntax to construct a plurality of proposed complete URLs are constructed;
forwarding the proposed complete URLs to a detector that determines whether each proposed complete URL is a valid complete URL; and
sending object retrieval requests to websites associated with the valid complete URLs.
5 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
18 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 to determine whether the parsed text matches tokens included in a syntax dictionary, the matching tokens corresponding in the syntax dictionary with syntax identified as useful in constructing universal resource locators (URLs); parsing the text of the script object before and after the matching tokens in accordance with the corresponding syntax to construct a plurality of proposed complete URLs are constructed; forwarding the proposed complete URLs to a detector that determines whether each proposed complete URL is a valid complete URL; and sending object retrieval requests to websites associated with the valid complete URLs. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. 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 to determine whether the parsed text matches tokens included in a syntax dictionary, the matching tokens corresponding in the syntax dictionary with syntax identified as useful in constructing universal resource locators (URLs); and
to parse the text of the script object before and after the matching tokens in accordance with the corresponding syntax to construct a plurality of proposed complete URLs, wherein the proxy server further includes a detector which is configured to receive the proposed complete URLs to determine whether each is a valid complete URL; anda 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 (10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. 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 to determine whether the parsed text matches tokens included in a syntax dictionary, the matching tokens corresponding in the syntax dictionary with syntax identified as useful in constructing universal resource locators (URLs); parse the text of the script object before and after the matching tokens in accordance with the corresponding syntax to construct a plurality of proposed complete URLs; forward the complete URLs to a detector that determines whether each of the proposed complete URLs is a valid complete URL; and send object retrieval requests to websites associated with the valid complete URLs.
-
Specification