[webkit-gtk] Setting HTTP Cookie header in request ?

Jérémy Lal kapouer at melix.org
Tue Aug 26 08:45:40 PDT 2014


using WebKit2-gtk3 2.4.4, this fails to set Cookie header, but succeeds
in setting X-Cookie header:

WebKitURIRequest* request = webkit_uri_request_new(uri);
SoupMessageHeaders* headers =
soup_message_headers_append(headers, "Cookie", "some=cookie");
soup_message_headers_append(headers, "X-Cookie", "some=other");
webkit_web_view_load_request(web_view, request);

Even if it is done in a webextension send-request listener.

I understand Cookie header is set after the "load" call.
Is there any way to work around that ?


More information about the webkit-gtk mailing list