Click here to Skip to main content
15,898,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please.... Pin
toxcct1-Jan-05 2:22
toxcct1-Jan-05 2:22 
GeneralProgram that starts up when the computer is booting Pin
hirancg1-Jan-05 1:20
hirancg1-Jan-05 1:20 
GeneralRe: Program that starts up when the computer is booting Pin
toxcct1-Jan-05 2:30
toxcct1-Jan-05 2:30 
GeneralInstaller program Pin
Abhi Lahare1-Jan-05 0:49
Abhi Lahare1-Jan-05 0:49 
QuestionHow to make self-extracting installers Pin
jsmawais31-Dec-04 23:22
jsmawais31-Dec-04 23:22 
AnswerRe: How to make self-extracting installers Pin
Gary R. Wheeler1-Jan-05 2:55
Gary R. Wheeler1-Jan-05 2:55 
QuestionHow to select system installed codec to make and compress a series of bmp into AVI file Pin
max_xiayi31-Dec-04 22:09
max_xiayi31-Dec-04 22:09 
GeneralProblem with HttpSendRequest Pin
sinale31-Dec-04 22:08
sinale31-Dec-04 22:08 
Hi I want to display to the user if the WEB site,that he is is protected by SSL.
For this i want to get from the WEB server the client certificate object.
I have a problem to send the request to the server.
This is my code

HINTERNET hOpen, hConnect, hReq;
DWORD dwFlags = INTERNET_FLAG_NO_CACHE_WRITE |
INTERNET_FLAG_KEEP_CONNECTION |
INTERNET_FLAG_IGNORE_CERT_CN_INVALID |
INTERNET_FLAG_IGNORE_CERT_DATE_INVALID|
INTERNET_FLAG_PRAGMA_NOCACHE;

char *lpBuffer, szData[51];
INTERNET_PORT dwPort;

wchar_t* accept[2]={L"*/*",0};
if ( !(hOpen = InternetOpen ( "HeadDump", INTERNET_OPEN_TYPE_PRECONFIG , NULL, NULL, 0) ) )
{
ShowError ( GetLastError(), "InternetOpen");
return false;
}

if ( !(hConnect = InternetConnect ( hOpen, url, dwPort,""/* user*/, ""/* password*/, INTERNET_SERVICE_HTTP, 0 , 1) ) )
{
ShowError (GetLastError(), "InternetConnect");
return false;
}

if ( !(hReq = HttpOpenRequest (hConnect, "GET", url, "HTTP/1.0", "", (const char**) accept, dwFlags ,1 )))
{
ShowError (GetLastError(), "HttpOpenRequest");
return false;
}


again:
//Resolver::Trace("Send Request = " + data);
std::string header = CONTENT_TYPE_STR;


if ( !HttpSendRequest (hReq, // handle from HttpOpenRequest
NULL,0, NULL,0) )
{
ShowError (GetLastError(), "HttpSendRequest");

dwFlags |= SECURITY_FLAG_IGNORE_UNKNOWN_CA |
SECURITY_FLAG_IGNORE_REVOCATION |
SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTP |
SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTPS |
SECURITY_FLAG_IGNORE_CERT_DATE_INVALID |
SECURITY_FLAG_IGNORE_CERT_CN_INVALID;

if ( !InternetSetOption (hReq,
INTERNET_OPTION_SECURITY_FLAGS,
&dwFlags,
sizeof (dwFlags) ) )
{
ShowError(GetLastError(),"InternetSetOptionFailed");
return false;
}
}

I'm new in VC++.
Sigh | :sigh:
Help me please with my question
GeneralWrite to Favourites Pin
LiYS31-Dec-04 19:41
LiYS31-Dec-04 19:41 
GeneralRe: Write to Favourites Pin
Michael Dunn1-Jan-05 8:06
sitebuilderMichael Dunn1-Jan-05 8:06 
GeneralPrintPreview from Dialog Pin
harisankar_r31-Dec-04 18:25
harisankar_r31-Dec-04 18:25 
GeneralRe: PrintPreview from Dialog Pin
Roger Allen1-Jan-05 0:10
Roger Allen1-Jan-05 0:10 
Generalextern "C" question. Pin
Link260031-Dec-04 18:12
Link260031-Dec-04 18:12 
GeneralRe: extern "C" question. Pin
Lim Bio Liong31-Dec-04 18:37
Lim Bio Liong31-Dec-04 18:37 
GeneralRe: extern "C" question. Pin
Link26001-Jan-05 3:48
Link26001-Jan-05 3:48 
GeneralRe: extern "C" question. Pin
toxcct1-Jan-05 4:32
toxcct1-Jan-05 4:32 
GeneralRe: extern "C" question. Pin
Henry miller3-Jan-05 9:12
Henry miller3-Jan-05 9:12 
Generalread/view multi-page TIFF file Pin
Maverick31-Dec-04 15:02
Maverick31-Dec-04 15:02 
GeneralRe: read/view multi-page TIFF file Pin
toxcct1-Jan-05 2:39
toxcct1-Jan-05 2:39 
GeneralRe: read/view multi-page TIFF file Pin
Maverick1-Jan-05 8:09
Maverick1-Jan-05 8:09 
GeneralWhich Process has input focus Pin
peterchen31-Dec-04 13:25
peterchen31-Dec-04 13:25 
GeneralRe: Which Process has input focus Pin
Michael Dunn31-Dec-04 14:05
sitebuilderMichael Dunn31-Dec-04 14:05 
GeneralRe: Which Process has input focus Pin
ThatsAlok31-Dec-04 18:37
ThatsAlok31-Dec-04 18:37 
GeneralNetworking tutorials Pin
elec_eng31-Dec-04 11:21
elec_eng31-Dec-04 11:21 
GeneralRe: Networking tutorials Pin
Ravi Bhavnani31-Dec-04 12:02
professionalRavi Bhavnani31-Dec-04 12:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.