W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2000

urgent help - sending requests to server

From: Arora Meenakshi <marora@redcreek.com>
Date: Mon, 1 May 2000 19:01:29 -0700
Message-ID: <B74EBB896D29D211A43E00805F650DF20119B802@mail.redcreek.com>
To: "'www-lib@w3.org'" <www-lib@w3.org>
hello
till now i was using the following MFC calls to get a CA certificate from
the netscape CA server.
could you please tell me the corresponding calls in Libwww for that...
till now my sequence was:
// initialize the SSL connection
step 1 . pServer = GetHttpConnection(strServerName, ITERNET_FLAG_SECURE,
nSslPort);

step2 . pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_POST,
strPage, NULL, 1, NULL, NULL, INTERNET_FLAG_EXISTING_CONNECT |
		 INTERNET_FLAG_NO_AUTO_REDIRECT |
		INTERNET_FLAG_RELOAD |
		INTERNET_FLAG_NO_CACHE_WRITE |
		INTERNET_FLAG_SECURE   |
		INTERNET_FLAG_IGNORE_CERT_DATE_INVALID |
		INTERNET_FLAG_IGNORE_CERT_CN_INVALID);

step 3.
pFile->QueryOption( INTERNET_OPTION_SECURITY_FLAGS, dwFlags );
			
dwFlags |= SECURITY_FLAG_IGNORE_UNKNOWN_CA;
// Set the new security flags
pFile->SetOption( INTERNET_OPTION_SECURITY_FLAGS, dwFlags );

step 4.
// send the HTTP headers (built by the constructor)
pFile->AddRequestHeaders(m_pszHeaders);

step5.
pFile->SendRequest(NULL, 0, (LPVOID) m_strRequest, strlen(m_strRequest));


thanx 
meenakshi
Received on Monday, 1 May 2000 22:01:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:36 GMT