[eclipse-clp-users] Unclear how to make http calls

From: Jeshan Babooa <j_at_...435...>
Date: Tue, 03 Aug 2021 18:58:28 +0000
Hello,
I'm trying to hit some simple http endpoint but to no avail.
What's the right way to do so?
I've tried the following:
lib(http).
http_open("[http://127.0.0.1:12345](http://127.0.0.1:12345/aceql)", R). (this returns No)

http_client("GET", "http://127.0.0.1:7379/GET/hello", "", [], S, P, R). (this works fine in Chrome/Curl but returns S= error(400, "Bad Request ") and does not populate the response)

I also tried the sockets library but that didn't work neither.

I also saw this very old thread with the same issue but it was never answered:
https://sourceforge.net/p/eclipse-clp/mailman/eclipse-clp-users/thread/1170255106.45c0ad02b43df%40imp.free.fr/#msg19014682

Jeshan
Received on Tue Aug 03 2021 - 19:16:43 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2024 - 09:13:20 CEST