Questions tagged [libsoup]

libSoup is a GLib based HTTP client and server library

Home page: wiki.gnome.org

22 questions
2
votes
1 answer

Soup.Websocket on Vala

I wrote a client and server for tests. Client: static Soup.WebsocketConnection websocket; int main (string[] args) { var ws_session = new Soup.Session(); var ws_message = new Soup.Message("GET", "http://127.0.0.1:8088/"); string[]…
Syabro
  • 65
  • 7
2
votes
1 answer

libsoup Ignores DNS TTLs in load-balanced architecture AWS Elastic Load Balancer

according to this link http://www.chaseventers.org/2010/09/libsoup-ignores-dns-ttls.html The code from libsoup /* Requires host_lock to be locked */ static SoupSessionHost * get_host_for_uri (SoupSession *session, SoupURI *uri) { …
Jay Bhaskar
  • 157
  • 2
  • 11
1
vote
1 answer

WebsocketConnection using libsoup-2.4 is sometimes blocking GTK ui thread and prevents opening the main window

I have a simple GTK app written in Vala with a websocket connection (using libsoup-2.4). Problem: my app sometimes freezes at startup (each ~10th startups) and doesn't show the gui window at all because of blocking somewhere in libsoup on socket…
1
vote
2 answers

Gnome Shell Extension: Send Request with Authorization Bearer Headers

I am trying to build a gnome shell extension (using gjs) that I need to communicate with an external REST API. In order to do so, I need to accompany my requests with the header: Authorization: Bearer and with a Content-Type:…
geoph9
  • 357
  • 3
  • 18
1
vote
1 answer

Change libsoup authenication within SoupSession

I have a working libsoup client which sends data with a HTTP POST and Basic Authentication. The authentication is handled within libsoup through a callback - when the server requires authentication libsoup signals it with the callback - and then the…
Peter
  • 2,240
  • 3
  • 23
  • 37
1
vote
1 answer

Async Vala Example

In the Book "Introduction to Vala" by Dr Michael Lauer, he has mentioned that the lib Soup async api is broken. I'm struggling to write a simple example using session.queue_message that query radio stations using the service from radio-browser. Here…
aeldemery
  • 81
  • 1
  • 2
1
vote
1 answer

How do you download files over HTTP with Vala?

I attempted to use libsoup-2.4 with https://valadoc.org/libsoup-2.4/Soup.RequestFile.html but the creation of RequestFile is protected and I can't see any operation that returns that object or an object that inherits RequestFile. The following…
g_l
  • 621
  • 5
  • 15
1
vote
2 answers

What is the correct way to send json POST request with Gnomes libsoup

Im having trouble sending POST requests with Gnome's libsoup. GET requests I can do just fine I just am unsure how to get a working post request. _httpSession = new Soup.Session(); let url = "http://localhost:3000/api/auth/register/org"; …
Roger Lee
  • 106
  • 1
  • 8
1
vote
0 answers

Using libsoup & https under Windows

I succesfully used libsoup to request an API using https in C used from C++. However when I build in release mode my request would get rejected with status 6: unacceptable TLS certificate. I tried to get more information and found out the…
Krapow
  • 611
  • 6
  • 26
1
vote
1 answer

Vala Compiler Cannot find soup.h from Library Libsoup 2.4

When i am compiling my program, i always get this error: fatal error: 'libsoup/soup.h' file not found The Compile command i am using is: valac --pkg glib-2.0 --pkg libsoup-2.4 Main.vala My OS is MacOS Sierra 10.12 and when i look into the Vala API…
Liz3
  • 145
  • 1
  • 11
1
vote
1 answer

How to use Basic Auth with libsoup via Gjs

I'm trying to query github's api with a token. Github's api accepts generated tokens provided that they're sent as a basic auth header. The API do not return HTTP 401 if the call is made without auth which means if one wants to query their api using…
alexduf
  • 11
  • 2
0
votes
0 answers

FindSoup.cmake error while compiling with brew

I was following instructions to compile dino.im on macOS (fresh installation) and I encountered two errors. I was able to fix one but cannot find any solutions to solve the other one. This is what the terminal prints: CMake Error at…
0
votes
0 answers

getting error while building the yocto after change gstreamer version from 1.20.6 to 1.22.4

getting "libsoup" error while triggering the yocto build after upgrade the gstreamer version from 1.20.6 to 1.20.0. ERROR: Nothing PROVIDES 'libsoup' (but…
0
votes
1 answer

Does libsoup handle smtp verbs like HELO (with argument)?

I am trying to move from CURL to SOUP, but need help with smtp. At the moment, I am just trying to HELO CURL will allow curl -X "HELO myService" smtps://smtp.server.com I am trying to do the same with soup. So far I have: let httpSession = new…
brainstormtrooper
  • 485
  • 2
  • 6
  • 18
0
votes
1 answer

Seeminly impossible to change HTTP headers in webkit2gtk

To start things off, there are no functions to change these http headers, which already seems ridiculous. I'm attempting to craft an unfingerprintable browser, and the first step was to modify the user agent. This was easily exposed via a webkit…
Seren541
  • 59
  • 3
1
2