CEF Basic HTTP Authentication

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF Basic HTTP Authentication

Postby TRiXER » Mon Aug 13, 2018 4:17 am

Hello,

Im more or less new to visual c# but Im completly new in CEFSharp :D I Want to open and URL which needs a username and a password because the site has a .htaccess . I have the Username in a variable called "User" and the password in a variable called "Pass". If I try something like this :

browser = new ChromiumWebBrowser(User + ":" + Pass + "@" + IPComplete);

the Form loads the Website for infinite time... If I only type this :

browser = new ChromiumWebBrowser(IPComplete);

then it says 401 unauthorized which is quite logical :D

by the way, the variable IPComplete is the Adress, in my case 172.16.5.151 but doesnt matter :D

Maybe you can help me Im on CEFSharp 65.0.0 ( Visual Studio says its the newest Version ) and Website like google are loading and working fine.

Thanks and Greetings from Germany :D

Lukas / TRiXER
TRiXER
Newbie
 
Posts: 1
Joined: Mon Aug 13, 2018 4:11 am

Re: CEF Basic HTTP Authentication

Postby amaitland » Tue Aug 14, 2018 6:58 pm

Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 56 guests