Custom scheme: Ajax POST in CEF3

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.

Custom scheme: Ajax POST in CEF3

Postby Jusonex » Wed Feb 17, 2016 10:08 am

Hello!

I'm using a custom scheme handler and stumbled upon the issue about POST requests not being supported by custom schemes: https://bitbucket.org/chromiumembedded/cef/issues/404

This issue and the following quotation refers to CEF1 though.
WebKit does not pass POST data to the request for synchronous XHRs executed on non-HTTP schemes. See the m\_url.protocolInHTTPFamily() check in XMLHttpRequest::send() in third\_party/WebKit/Source/WebCore/xml/XMLHttpRequest.cpp. If you need to use XHR POST requests you should register your custom handler using the HTTP or HTTPS protocol. Since this is an intentional WebKit design feature it will likely not be changed for CEF.


Has this changed with Blink or does Blink still use the same design? Is there a chance to get this feature working in CEF3 or do I have to fall back to the HTTP scheme?

Best regards and thanks in advance
Jusonex
Techie
 
Posts: 13
Joined: Sun Apr 27, 2014 2:17 pm

Re: Custom scheme: Ajax POST in CEF3

Postby magreenblatt » Wed Feb 17, 2016 11:08 am

You can use the http scheme with a custom handler. See https://bitbucket.org/chromiumembedded/ ... t-handling
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 58 guests