I'm busy programming a scheme handler in CEF rev. 259 (coming from rev. 231 the programming interface is really cleaned up, my compliments on that !).
In my scheme handler I'm implementing the ProcessRequest function:
- Code: Select all
ProcessRequest(CefRefPtr<CefRequest> request, CefString& redirectUrl, CefRefPtr<CefResponse> response, int* response_length)
Now I'm stuck on a POST request. I can get the request Content-Type out of the headers, but what I don't understand is how to get the request http-body bytes. I found the request->GetPostData function to retrieve the PostData.
I'm having the following questions:
1) How do I convert CefPostData to request http-body-bytes ?
2) CefPostData is build on a list of elements, which kan be retrieved by CefPostData::GetElements. Each element can be bytes, a filename or empty. Must I concatenate these elements myself into a http-body or is there some helper function ?
Any help or pointers are welcome !
Kind regards,
Mirco Babin (The Netherlands)