发明名称 Method and system for packing and unpacking web pages
摘要 A method for packing the multiple files and folders of an HTML Web page into a single MHTML file. The packing process begins by determining whether the user has write privileges to the current location. If not, the user is prompted to save the MHTML file in an alternate location (e.g., the desktop). If the user has write privileges to the current location, the process opens the main HTML Web page and searches for supporting resource files. In short, the supporting resource files are identified by searching for known, common resource file references in the main HTML source file. When the resource file references have been identified, the process packages the main HTML document and all of the supporting resource files into a single file in MHTML format. The unpacking process opens the MHTML file and identifies the main HTML document portion, as well as the portions of the MHTML file containing the supporting resource files. Once all of the components have been identified, the Web page's folder structure is determined by referring to the content location field contained in each separate portion of the MHTML file. The individual MHTML components are converted into files and the main HTML file is stored. The resource files are stored in locations relative to the main HTML file, as identified by the unpacked folder structure.
申请公布号 US7464328(B2) 申请公布日期 2008.12.09
申请号 US20040962018 申请日期 2004.10.08
申请人 MICROSOFT CORPORATION 发明人 HALL GABRIEL J.;RAMALEY ALAN
分类号 G06N3/00;G06F15/00;G06F17/00;G06F17/30 主分类号 G06N3/00
代理机构 代理人
主权项
地址