Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using cookie with CDO
Message
From
16/10/2007 11:38:40
 
 
To
16/10/2007 11:11:34
General information
Forum:
ASP.NET
Category:
Web control library
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01261256
Message ID:
01261276
Views:
8
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
Previous
Reply
Map
View

Click here to load this message in the networking platform