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[]…
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)
{
…
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…
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:…
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…
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…
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…
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";
…
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…
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…
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…
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…
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…
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…
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…