Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using cookie with CDO
Message
De
16/10/2007 11:38:40
 
 
À
16/10/2007 11:11:34
Information générale
Forum:
ASP.NET
Catégorie:
Librairie contrôle Web
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01261256
Message ID:
01261276
Vues:
10
The following seems to be an approach:
        Dim loConfiguration As CDO.Configuration = New CDO.Configuration
        Dim loField As ADODB.Fields
        Dim loMessage As CDO.Message = New CDO.Message
        Dim loStream As ADODB.Stream

        ' Define the cookie
        loField = loConfiguration.Fields
        loField(CDO.CdoConfiguration.cdoHTTPCookies).Value = ""

        ' Make sure we set the cookie
        loMessage.Configuration = loConfiguration

        ' Go get the page
        loMessage.CreateMHTMLBody("http://www.levelextreme.com", CDO.CdoMHTMLFlags.cdoSuppressNone, "", "")
        loStream = loMessage.GetStream()

        ' Save to file
        loStream.SaveToFile("D:\Test.mhtml")
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform