Visualizzazione dei risultati da 1 a 4 su 4

Discussione: cosa sono i file .mht?

  1. #1

    cosa sono i file .mht?

    come da oggetto ,che tipo di file sono?

    quando e dove vengono usati?

  2. #2
    Si tratta di file che contengono una pagina html e tutti gli elementi a cui fa riferimento (come immagini, fogli di stile, ...).
    Questo ad esempio è il contenuto di un file mht ottenuto salvato la home page di google:
    codice:
    From: <Salvato con Microsoft Internet Explorer 5>
    Subject: Google
    Date: Tue, 19 Sep 2006 20:59:10 +0200
    MIME-Version: 1.0
    Content-Type: multipart/related;
    	type="text/html";
    	boundary="----=_NextPart_000_0000_01C6DC2E.74425B70"
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
    
    This is a multi-part message in MIME format.
    
    ------=_NextPart_000_0000_01C6DC2E.74425B70
    Content-Type: text/html;
    	charset="utf-8"
    Content-Transfer-Encoding: quoted-printable
    Content-Location: http://www.google.it/
    
    =EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD><TITLE>Google</TITLE>
    <META http-equiv=3Dcontent-type content=3D"text/html; charset=3DUTF-8">
    <STYLE>BODY {
    	FONT-FAMILY: arial,sans-serif
    }
    TD {
    	FONT-FAMILY: arial,sans-serif
    }
    A {
    	FONT-FAMILY: arial,sans-serif
    }
    P {
    	FONT-FAMILY: arial,sans-serif
    }
    .h {
    	FONT-FAMILY: arial,sans-serif
    }
    .h {
    	FONT-SIZE: 20px
    }
    .q {
    	COLOR: #00c
    }
    </STYLE>
    
    <SCRIPT>=0A=
    <!--=0A=
    function sf(){document.f.q.focus();}=0A=
    function clk(url,oi,cad,ct,cd,sg){if(document.images){var e =3D =
    window.encodeURIComponent ? encodeURIComponent : escape;var u=3D"";var =
    oi_param=3D"";var cad_param=3D"";if (url) =
    u=3D"&url=3D"+e(url.replace(/#.*/,"")).replace(/\+/g,"%2B");if (oi) =
    oi_param=3D"&oi=3D"+e(oi);if (cad) cad_param=3D"&cad=3D"+e(cad);new =
    Image().src=3D"/url?sa=3DT"+oi_param+cad_param+"&ct=3D"+e(ct)+"&cd=3D"+e(=
    cd)+u+"&ei=3D9D0QRfjlI5-gQeSBvb8N"+sg;}return true;}=0A=
    // -->=0A=
    </SCRIPT>
    
    <META content=3D"MSHTML 6.00.2900.2963" name=3DGENERATOR></HEAD>
    <BODY text=3D#000000 vLink=3D#551a8b aLink=3D#ff0000 link=3D#0000cc =
    bgColor=3D#ffffff=20
    topMargin=3D3 onload=3Dsf() marginheight=3D"3">
    <CENTER>
    <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0>
      <TBODY>
      <TR>
        <TD noWrap align=3Dright><FONT size=3D-1><A=20
          onmousedown=3D"return =
    clk('/url?sa=3Dp&amp;pref=3Dig&amp;pval=3D3&amp;q=3Dhttp://www.google.it/=
    ig%3Fhl%3Dit&amp;sig=3D__G4FoAkG2BgZXFScY56sHYkwh_us=3D','promos','hppphn=
    u:it_all','pro','1','')"=20
          =
    href=3D"http://www.google.it/url?sa=3Dp&amp;pref=3Dig&amp;pval=3D3&amp;q=3D=
    http://www.google.it/ig%3Fhl%3Dit&amp;si...cY56sHYkwh_us=
    =3D">Home=20
          page personalizzata</A>|<A=20
          =
    href=3D"https://www.google.com/accounts/Login?continue=3Dhttp://www.googl=
    e.it/&amp;hl=3Dit">Accesso</A></FONT></TD></TR>
      <TR height=3D4>
        <TD><IMG height=3D1 alt=3D"" =
    width=3D1></TD></TR></TBODY></TABLE><IMG height=3D110=20
    alt=3DGoogle src=3D"http://www.google.it/intl/it_it/images/logo.gif"=20
    width=3D276>
    
    
    <FORM name=3Df action=3D/search>
    <SCRIPT><!--=0A=
    function qs(el) {if (window.RegExp && window.encodeURIComponent) {var =
    ue=3Del.href;var =
    qe=3DencodeURIComponent(document.f.q.value);if(ue.indexOf("q=3D")!=3D-1){=
    el.href=3Due.replace(new =
    RegExp("q=3D[^&$]*"),"q=3D"+qe);}else{el.href=3Due+"&q=3D"+qe;}}return =
    1;}=0A=
    // -->=0A=
    </SCRIPT>
    
    <TABLE cellSpacing=3D0 cellPadding=3D4 border=3D0>
      <TBODY>
      <TR>
        <TD noWrap><FONT size=3D-1>Web<A =
    class=3Dq=20
          onclick=3D"return qs(this);"=20
          =
    href=3D"http://www.google.it/imghp?hl=3Dit&amp;tab=3Dwi">Immagini</A>&nbs=
    p;<A=20
          class=3Dq onclick=3D"return qs(this);"=20
          =
    href=3D"http://groups.google.it/grphp?hl=3Dit&amp;tab=3Dwg">Gruppi</A>&nb=
    sp;<A=20
          class=3Dq onclick=3D"return qs(this);"=20
          =
    href=3D"http://news.google.it/nwshp?hl=3Dit&amp;tab=3Dwn">News</A>&=
    nbsp;<A=20
          class=3Dq=20
          =
    href=3D"http://www.google.it/intl/it/options/">altro=C2=BB</A><=
    /FONT></TD></TR></TBODY></TABLE>
    <TABLE cellSpacing=3D0 cellPadding=3D0>
      <TBODY>
      <TR>
        <TD width=3D"25%"></TD>
        <TD align=3Dmiddle><INPUT type=3Dhidden value=3Dit name=3Dhl><INPUT=20
          title=3D"Cerca con Google" maxLength=3D2048 size=3D55 =
    name=3Dq>
    <INPUT type=3Dsubmit value=3D"Cerca con Google" =
    name=3DbtnG><INPUT type=3Dsubmit value=3D"Mi sento fortunato" =
    name=3DbtnI></TD>
        <TD vAlign=3Dtop noWrap width=3D"25%"><FONT size=3D-2><A =
    
          href=3D"http://www.google.it/advanced_search?hl=3Dit">Ricerca=20
          avanzata</A>
    <A=20
          =
    href=3D"http://www.google.it/preferences?hl=3Dit">Preferenze</A>
    &nbsp=
    ;<A=20
          href=3D"http://www.google.it/language_tools?hl=3Dit">Strumenti per =
    le=20
          lingue</A></FONT></TD></TR>
      <TR>
        <TD align=3Dmiddle colSpan=3D3><FONT size=3D-1>Cerca: <INPUT =
    id=3Dall type=3Dradio=20
          CHECKED value=3D"" name=3Dmeta><LABEL for=3Dall> il Web =
    </LABEL><INPUT id=3Dlgr=20
          type=3Dradio value=3Dlr=3Dlang_it name=3Dmeta><LABEL for=3Dlgr> =
    pagine in Italiano=20
          </LABEL><INPUT id=3Dcty type=3Dradio value=3Dcr=3DcountryIT =
    name=3Dmeta><LABEL=20
          for=3Dcty> pagine provenienti da: Italia=20
    </LABEL></FONT></TD></TR></TBODY></TABLE></FORM>
    
    <FONT =
    size=3D-1><A=20
    href=3D"http://www.google.it/intl/it/ads/">Pubblicit=C3=A0</A> - <A=20
    href=3D"http://www.google.it/services/">Soluzioni Aziendali</A> - <A=20
    href=3D"http://www.google.it/intl/it/about.html">Tutto su Google</A> - =
    <A=20
    href=3D"http://www.google.com/ncr">Google.com in English</A><SPAN =
    id=3Dhp=20
    style=3D"BEHAVIOR: url(#default#homepage)"></SPAN>
    <SCRIPT>=0A=
    //<!--=0A=
    if (!hp.isHomePage('http://www.google.it/')) {document.write("
    
    <a =
    href=3D\"/mgyhp.html\" =
    onClick=3D\"style.behavior=3D'url(#default#homepage)';setHomePage('http:/=
    /www.google.it/');\">Scegli Google come pagina iniziale!</a>");}=0A=
    //-->=0A=
    </SCRIPT>
     </FONT>
    
    
    <FONT size=3D-2>=C2=A92006 Google</FONT></P></CENTER></BODY></HTML>
    
    ------=_NextPart_000_0000_01C6DC2E.74425B70
    Content-Type: image/gif
    Content-Transfer-Encoding: base64
    Content-Location: http://www.google.it/intl/it_it/images/logo.gif
    
    R0lGODlhFAFuAOcAAP////f7/+fr/8bX/73P763H96W+7/f3/4Sq91mB1jFl1iFZ1hhNxhhJtRBF
    ---omissis---
    tJVO4iuXobcvZMN0w5fi2i4iKKfIwqnjcpM2xMOVs4mhWsM89MM/BMRAPK+S0A1CFMRDFERDRMRF
    ZMRGdMQ7LEQNecRJpMTgCggAOw==
    
    ------=_NextPart_000_0000_01C6DC2E.74425B70--
    Amaro C++, il gusto pieno dell'undefined behavior.

  3. #3
    Moderatore di foto/videocamere digitali ed elettronica hi-tech L'avatar di sparwari
    Registrato dal
    Jun 2004
    Messaggi
    7,667
    la comodità sta nel fatto che in un UNICO file vengono salvati tutti gli elementi di una pagoina web


    1... 2... 3... prova

  4. #4
    Esatto; la scomodità invece deriva dal fatto che solo Internet Explorer supporta questo formato. Inoltre questo formato porta in sé un rischio di sicurezza: infatti in questo tipo di file si possono incorporare componenti (ad esempio ActiveX) dannosi, non immediatamente riconoscibili perché inglobati nel file.
    Amaro C++, il gusto pieno dell'undefined behavior.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.