Questions tagged [libsoup]

libSoup is a GLib based HTTP client and server library

Home page: wiki.gnome.org

22 questions
0
votes
1 answer

libsoup 3.0: rewriting old Soup.form_request_new_from_hash

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 =…
llaabbss
  • 9
  • 3
0
votes
0 answers

The websocket connection is disconnected after 6 seconds

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,…
Behzad
  • 23
  • 3
0
votes
1 answer

Webkitgtk+ - Webpageprocess crashes when I try to modify SoupMessageHeaders

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 *…
Ömer Gök
  • 19
  • 5
0
votes
1 answer

How to add custom soup message headers in gjs?

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?
ilmix
  • 151
  • 3
  • 11
0
votes
1 answer

Can I use wildcard pattern matching in Libsoup server?

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…
0
votes
0 answers

Problems compiling with libsoup (gstreamer)

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…
Harry
  • 11
  • 2
0
votes
0 answers

HTTP POST with binary data with libsoup

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…
Yury
  • 9
  • 2
1
2