I have upgraded Fedora 36 to Fedora 37 with its GNOME 43 support.
Now my extention is not working as there is a change in libsoup 3.0.
// libsoup 2.0: works perfectly in GNOME 43, libsoup 2.0
_httpSession = new Soup.Session();
let message =…
I am using the following code to connect to the websocket, but the connection is disconnected after 6/5 seconds:
const Soup = imports.gi.Soup;
const GLib = imports.gi.GLib;
const byteArray = imports.byteArray;
const loop = GLib.MainLoop.new(null,…
I am using webkit2gtk4 and the webkit extension library. Anyway, I'm trying to write a webkit extension with the following code and link it to the main loop.
#include
static gboolean set_http_headers(WebKitWebPage *…
I can't find any method in Soup.Message that would allow me to add custom headers. I tried adding headers using Message.requset_headers but that field is read only. How can I add custom header to my message?
I am using libsoup to implement a HTTP server. I want to catch all wildcard patterns of the form -
"/foo/*/bar/"
in the URL but I dont know how to do this right now.
How can I implement this using the Libsoup and GLib libraries?
My current code is…
I have build the gst-build Gstreamer 1.18 version, after installing libsoup2.4-dev and I can see that the dependency is detected:
|Dependency libsoup-2.4 found: YES 2.62.1 (cached).
Later on, compiling the project that I am developing related with…
I'm new to libcurl but I would like to implement the following curl command using libsoup:
curl --data-binary '@test.mp4' -H "x-file-name:test.mp4" http://server/upload
How can I do the same with libsoup? Could you give me some examples how to…