Hello List,
is there a way to make http requests (get/post) in Pd? In max it can be done with the [dictionary] for composing the request header/body als JSON objects, then send it as a request with [maxurl].
Thanks for hints, Tobias
Dr. Tobias Hartmann Künstlerisch-Wissenschaftlicher Mitarbeiter / Assistant Professor
exMedia - Sound
Kunsthochschule für Medien Köln (KHM) Academy of Media Arts Cologne Peter-Welter-Platz 2 50676 Köln
t.hartmann@khm.de +49 (0) 221 20189 228
www.khm.de www.exmedia.khm.de
www.hartmanntobias.com
On Thu, 2022-11-24 at 22:00 +0100, KHM t.hartmann wrote:
Hello List,
is there a way to make http requests (get/post) in Pd? In max it can be done with the [dictionary] for composing the request header/body als JSON objects, then send it as a request with [maxurl].
Check purest_json. It is available through Deken.
Roman
On 24.11.22 23:09, Roman Haefeli wrote:
On Thu, 2022-11-24 at 22:00 +0100, KHM t.hartmann wrote:
Hello List,
is there a way to make http requests (get/post) in Pd? In max it can be done with the [dictionary] for composing the request header/body als JSON objects, then send it as a request with [maxurl].
Check purest_json. It is available through Deken.
If the downloads through Deken do not work (they are known to be buggy, and will not load on Mac OS X), try the current development snapshots: https://cloud.residuum.org/index.php/s/380C60JAabnO7jk
.dek files are just zip files with a different extension.
Hth, Thomas
Am 25. November 2022 17:45:21 MEZ schrieb Thomas Mayer thomas@residuum.org:
Check purest_json. It is available through Deken.
If the downloads through Deken do not work (they are known to be buggy, and will not load on Mac OS X),
If they are known to be buggy, why don't you upload a fixed version?
.dek files are just zip files with a different extension.
With newer versions of deken ( such as shipped in Pd-0.53-0), you can open/install manually downloaded .dek files.
mfg.sfg.jfd IOhannes
Thank you… but I really can not find out how to open/install .dek files with deken in pd 0.53… How can I do that?
they are known to be buggy, and will not load on Mac OS X
Yes, there seems a library missing: (purest_json 1.4.3)
/Users/tobias.hartmann/Documents/Pd/externals/purest_json/rest.pd_darwin: dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/rest.pd_darwin, 0x000A): Library not loaded: '/opt/homebrew/opt/json-c/lib/libjson-c.5.dylib' Referenced from: '/Users/tobias.hartmann/Documents/Pd/externals/purest_json/rest.pd_darwin' Reason: tried: '/opt/homebrew/opt/json-c/lib/libjson-c.5.dylib' (no such file), '/usr/lib/libjson-c.5.dylib' (no such file) rest ... couldn't create
Best, Tobias
Dr. Tobias Hartmann Künstlerisch-Wissenschaftlicher Mitarbeiter / Assistant Professor
exMedia - Sound
Kunsthochschule für Medien Köln / Academy of Media Arts Cologne
Peter-Welter-Platz 2 50676 Köln
+49 (0) 221 20189 228
www.khm.de www.exmedia.khm.de
www.hartmanntobias.de
Am 25.11.2022 um 20:04 schrieb IOhannes m zmölnig zmoelnig@iem.at:
Am 25. November 2022 17:45:21 MEZ schrieb Thomas Mayer thomas@residuum.org:
Check purest_json. It is available through Deken.
If the downloads through Deken do not work (they are known to be buggy, and will not load on Mac OS X),
If they are known to be buggy, why don't you upload a fixed version?
.dek files are just zip files with a different extension.
With newer versions of deken ( such as shipped in Pd-0.53-0), you can open/install manually downloaded .dek files.
mfg.sfg.jfd IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Am 26. November 2022 11:06:36 MEZ schrieb KHM Mail t.hartmann@khm.de:
Thank you… but I really can not find out how to open/install .dek files with deken in pd 0.53… How can I do that?
Or similar, I'm currently afk.
mfg.sfg.jfd IOhannes
Hello Tobias,
Thank you… but I really can not find out how to open/install .dek files with deken in pd 0.53… How can I do that?
Exactly as IOhannes describes it:
- Open the deken dialog
(I.e.: in the "Help" menu, click "Find externals")
- Open the File->Install DEK file... menu
- Select a .dek file
- Click on "Open"
Or similar, I'm currently afk.
Just in case, this is how it works in Pure Data 0.52.1:
bottom-right corner 3. A menu opens. Click the "Install DEK file..." button 4. A file browser opens. Choose your DEK file here.
Best regards, Albert.
thanks! Installation works.
Installed this package: 304_2022-11-20_purest_jsonv2.0.0-alpha(Darwin-arm64-32).dek
It’s quite some work to confirm all security warnings (MacOS 12.5.1) … hihi
[rest] [urlparams] seem to work.
NOT WORKING: [oauth] [json-encode] [json-decode]
json-encode ... couldn't create /Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-decode.pd_darwin: dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-decode.pd_darwin, 0x000A): symbol not found in flat namespace (_json_object_array_get_idx) /Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-decode.pd_darwin: dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-decode.pd_darwin, 0x000A): symbol not found in flat namespace (_json_object_array_get_idx)
json-decode ... couldn't create /Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin: dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin, 0x000A): symbol not found in flat namespace (_json_object_array_add) /Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin: dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin, 0x000A): symbol not found in flat namespace (_json_object_array_add)
oauth ... couldn't create /Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin: dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin, 0x000A): symbol not found in flat namespace (_json_object_array_add) /Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin: dlopen(/Users/tobias.hartmann/Documents/Pd/externals/purest_json/json-encode.pd_darwin, 0x000A): symbol not found in flat namespace (_json_object_array_add)
Dr. Tobias Hartmann Künstlerisch-Wissenschaftlicher Mitarbeiter / Assistant Professor
exMedia - Sound
Kunsthochschule für Medien Köln / Academy of Media Arts Cologne
Peter-Welter-Platz 2 50676 Köln
+49 (0) 221 20189 228
www.khm.de www.exmedia.khm.de
www.hartmanntobias.de
Am 26.11.2022 um 11:27 schrieb IOhannes m zmölnig zmoelnig@iem.at:
Am 26. November 2022 11:06:36 MEZ schrieb KHM Mail t.hartmann@khm.de:
Thank you… but I really can not find out how to open/install .dek files with deken in pd 0.53… How can I do that?
- Open the deken dialog
- Open the File->Install DEK file... menu
- Select a .dek file
- Click on "Open"
Or similar, I'm currently afk.
mfg.sfg.jfd IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On 25.11.22 20:04, IOhannes m zmölnig wrote:
Am 25. November 2022 17:45:21 MEZ schrieb Thomas Mayer thomas@residuum.org:
Check purest_json. It is available through Deken.
If the downloads through Deken do not work (they are known to be buggy, and will not load on Mac OS X),
If they are known to be buggy, why don't you upload a fixed version?
I wanted to streamline the new version before releasing it. I have just done it.
"Ich komme aus dem Staunen nicht heraus." "Dann bleib halt drin, du Seppel" (Dietmar Dath - Die Abschaffung der Arten) http://www.residuum.org/
you can send/receive http requests directly in pd as wellhttps://github.com/chr15m/pd-ws personally I got 'something' by doing the following (without parsing/sending an http 'ok' back..): hopefully e-mail doesn't mess it up
<form action="http://localhost:2000/" method="post"> <input type="text"> <input type="submit" value="Send"> </form>then[netreceive -b 2000]
to receive
-seb
-----Original Message----- From: KHM t.hartmann t.hartmann@khm.de To: pd-list@lists.iem.at Sent: Thu, Nov 24, 2022 1:00 pm Subject: [PD] http get/post request in pd. how to?
Hello List, is there a way to make http requests (get/post) in Pd?In max it can be done with the [dictionary] for composing the request header/body als JSON objects, thensend it as a request with [maxurl]. Thanks for hints,Tobias __________________________________________
Dr. Tobias Hartmann Künstlerisch-Wissenschaftlicher Mitarbeiter / Assistant Professor exMedia - Sound Kunsthochschule für Medien Köln (KHM) Academy of Media Arts Cologne Peter-Welter-Platz 2 50676 Köln
t.hartmann@khm.de +49 (0) 221 20189 228
www.khm.de www.exmedia.khm.de
www.hartmanntobias.com_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list