Code: Select all
wxCriticalSectionLocker locker(s_criticalSection);
wxURL wurl(m_strUrl);
if (wurl.GetError()==wxURL_NOERR)
{
wxProtocol& protocol = wurl.GetProtocol();
wxHTTP* pHTTP = (wxHTTP*)&protocol;
pHTTP->SetHeader(_T("User-Agent"), _T("My browser"));
protocol.SetTimeout(10);
wxInputStream *in = wurl.GetInputStream();
if ( in && in->IsOk() )
{
m_pHtml->LoadUrl(m_strUrl);
return NULL;
}
}
I totally lost here. I'll appreciate if anybody could give any suggestion. Thanks