Hi, Most of the attempts were erased. I was just using this stub to plug things in. I can get logged just by tagging the parameters to the url and doing a navigate. But that way ends up at a splash screen which the VBA code bypasses. This one I think was from MSDN:
CString strHeaders =
_T("Content-Type: application/x-www-form-urlencoded");
CString strFormData = _T("in_un=xxx&in_pw=xxx&process=IN&PARGS=http%253A%252F%252Fwww.racingpost.co.uk%252Fnews%252Fhome.sd");
CInternetSession session;
CHttpConnection* pConnection =
session.GetHttpConnection(_T("https://reg.racingpost.co.uk/cde/login\_iframe\_rp.sd"));
CHttpFile* pFile =
pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST, _T("rp_sign"));
BOOL result = pFile->SendRequest(strHeaders,
(LPVOID)(LPCTSTR)strFormData, strFormData.GetLength());
The form is:
I am not too much when it comes to HTTP Thanks, Roy