I have some code used in cef1 that worked fine.... and after moving to cef3 it stopped to work.
- Code: Select all
CefRefPtr< CefRequest > send = CefRequest::Create();
CefRefPtr< CefPostData > postdata = CefPostData::Create();
CefRefPtr< CefPostDataElement > entry = CefPostDataElement::Create();
entry->SetToBytes( data.length(), data.ascii() );
postdata->AddElement( entry );
if( send )
{
CefString destination;
destination.FromWString( url.ucs2() );
send->SetURL( destination );
send->SetMethod( "POST" );
send->SetPostData( postdata );
browser->GetMainFrame()->LoadRequest( send );
return true;
}
Is there something more I just need to set? or it is a known bug - I didn't find any issue related