SynthMaker

HTTP Post improvements needed (and more networking features)

Archive · 2010 4 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

rl ·

The HTTP Post module can only send HTTP requests. The server's answer currently is lost in the depths of the module. It shouldn't be too hard to implement since the answer just has to be brought to the outside.

To make something useful with the module it needs three additional outputs: - an int output that contains the HTTP Status Code (200, 404, 503,... you get the idea) - a String output that contains the HTTP response header (or as two String Array outputs for names and values - like the inputs) - a String output of the HTTP response data. According to the content type it could be ascii or "pseudo hex" encoded (as the String to Sys-ex module works, like 3AFC00D7...)

This way _real_ communication to a webserver could be implemented. - (I'm not asking for SSL and HTTPS - yet) - Also missing: the request headers cannot be set (important for sending back cookies) - User-Agent is "Posting" ?? - better let specify the agent through the request headers

IT seems the HTTP Post module is implemented following the assumption that the body of the post request only holds key/value pairs (the 2 input arrays 'names' and 'values'). But that's just an artificial limitation (e.g. multipart-form requests look differently) and in principle a HTTP Post body can contain any kind of binary data.

Not tested yet, does the HTTP Module follow redirects (301, 302, 303)?

There is a bug. After the first successful request, the boolean output stays always true.

----

And it would be very useful to offer at least some basic UDP networking (a UDP listener task, and the possibility to send datagrams to a server:port) This way at least basic OSC (open sound control) could be implemented.

Thank you for listening.

infuzion ·

I don't know about ALL that... I still want to see the SSE3&4 added 😉 But, it does seem that some more HTTP stuff to be added to share patches online would be neat. There are wrappers to handle that though...

kirkagur ·

in its current stage....can you make a "like" button? or some facebook integration.?

sunsynth ·

+++ 1

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.