SOL9 Sample: UrlCacheEntry

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * UrlCacheEntry.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */



// SOL9
// 2012/01/08

#include <sol/Locale.h>
#include <sol/FileTime.h>
#include <sol/wininet/UrlCacheEntry.h>

void _tmain(int argc, const TCHAR* argv[])
{
  if (argc !=2) {
    _tprintf(_T("Usage: %s UrlForTemporaryInternetFile\n"), argv[0]);
    _tprintf(_T("Ex: %s Cookie:someone@google.com/\n"), argv[0]);
    _tprintf(_T("Ex: %s Visited:someone@http://www.google.com/index.html\n"), argv[0]);
    _tprintf(_T("Ex: %s vnd.ms.wmhtml://localhost/WMP02c2a449-7eeb-4834-a580-59e299500612.jpg\n"), argv[0]);

    return;
  }

  Locale locale;

  try {
    const TCHAR* url = argv[1]; 
  
    UrlCacheEntry entry = url;
    Writer writer;
    entry.write(writer);
    
  } catch (Exception& ex) {
    ex.printf();
  } catch (...) {
    printf("Exception\n");
  }
}

Last modified: 2 May 2016

Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.