[webkit-gtk] Setting HTTP Cookie header in request ?
Jérémy Lal
kapouer at melix.org
Tue Aug 26 08:45:40 PDT 2014
Hi,
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 =
webkit_uri_request_get_http_headers(request);
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 ?
Jérémy.
More information about the webkit-gtk
mailing list