Using JCEF as HTTP Client Only

Having problems with building or using the JCEF Java binding? Ask your questions here.

Using JCEF as HTTP Client Only

Postby WhiteAngel » Thu Jan 14, 2021 5:51 am

Hello,

Is this possible to use JCEF purely as HTTP client (without the need of UI / rendering HTML / loading additional resources e.t.c.)?
Or, maybe, it's possible to use only Network Service from Chromium?
WhiteAngel
Newbie
 
Posts: 3
Joined: Thu Jan 14, 2021 5:48 am

Re: Using JCEF as HTTP Client Only

Postby magreenblatt » Thu Jan 14, 2021 11:46 am

You can make network requests without creating a window by using CefURLRequest
magreenblatt
Site Admin
 
Posts: 10926
Joined: Fri May 29, 2009 6:57 pm

Re: Using JCEF as HTTP Client Only

Postby WhiteAngel » Fri Jan 15, 2021 3:42 am

Thank you for your response, this works like a charm!
Is there any chance to extract only networking layer not to have all other unused dependencies?
WhiteAngel
Newbie
 
Posts: 3
Joined: Thu Jan 14, 2021 5:48 am

Re: Using JCEF as HTTP Client Only

Postby magreenblatt » Fri Jan 15, 2021 10:50 am

You can look at cronet, but it doesn’t currently support desktop platforms.
magreenblatt
Site Admin
 
Posts: 10926
Joined: Fri May 29, 2009 6:57 pm

Re: Using JCEF as HTTP Client Only

Postby WhiteAngel » Sat Jan 16, 2021 3:11 am

That's an amazing hint! Thank you so much @magreenblatt! I see that cronet does have native library and there are Linux tests being run by Cronet team. So, this might work. I will give it a try!
Thank you once more!
WhiteAngel
Newbie
 
Posts: 3
Joined: Thu Jan 14, 2021 5:48 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 3 guests