Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*****************************************************************************\
* MODULE: anonycon.cxx * * The module contains class for connections using anonymous account * * Copyright (C) 1997-1998 Microsoft Corporation * * History: * 07/31/98 Weihaic Created * \*****************************************************************************/
#include "precomp.h"
#include "priv.h"
CAnonymousConnection::CAnonymousConnection ( BOOL bSecure, INTERNET_PORT nServerPort, BOOL bIgnoreSecurityDlg):
CAnyConnection (bSecure, nServerPort, bIgnoreSecurityDlg, AUTH_ANONYMOUS) { }
HINTERNET CAnonymousConnection::OpenRequest ( LPTSTR lpszUrl) { HINTERNET hReq = NULL;
hReq = InetHttpOpenRequest(m_hConnect, g_szPOST, lpszUrl, g_szHttpVersion, NULL, NULL, INETPP_REQ_FLAGS | INTERNET_FLAG_NO_AUTH | (m_bSecure?INTERNET_FLAG_SECURE:0), 0);
if ( hReq ) { if ( InetInternetSetOption (hReq, INTERNET_OPTION_USERNAME, TEXT (""), 1) && InetInternetSetOption (hReq, INTERNET_OPTION_PASSWORD, TEXT (""), 1) ) { } else { CloseRequest (hReq); hReq = NULL; } }
return hReq; }
|