Hello,
Sorry when we didnt anounce before. We use for PD Webserver (especially Zope/Plone) interconnection the
iemxmlrpc lib (author thomas grill iem)
(I checked it in now in puredata externals under iem projects) and put a releases at the moment here http://puredata.org/Members/ritsch/temporary/
The trick is pd behaves as an (is a) xmlrpc server and you can send messages to receiver in pd and request for messages of receivers. So its easy to get info from pd and dont need pd connect to any other application, Also there is a feature to send whole patches to pd and let pd execute them (be careful...)
Also a better synthax is used for message encapsulation, so xmlrpc takes over all the communication needs for secure data transmission. (Maybe just a better netsend/netreceive).
I just develop a project pd as radiostudio controllable over CMS systems (Plone/Zope) with students.
mfg Winfried
Am Sonntag, 6. März 2005 13:53 schrieb Marc Boon:
Roman Haefeli wrote:
hi
[netclient] from maxlib ( http://www.akustische-kunst.org/puredata/maxlib/ )works in both ways, sending data to server and receive data from it. i tried the same thing and it worked technically, but instead of getting the index.html-file i always got a html-file with an error-msg like 'bad request'. i don't know much about the http-protocol, but it seems you have to send a quite accurately 'formulated' request to get the data you want. may you try to connect from your brwoser to [netserver] (also from maxlib) in order to see how such a request-msg looks like. i always failed, but you may will be luckier than me. if so, let me know.
I ended up using [shell], sending it the name of a shell script as a message. The shell script first calls wget to do the actual http request, and then does some testing on the return value before sending the response to stdout, which is then picked up by [shell] again.
This way, I can put the various wget options in this external shell script, and do all my error checking before sending the result back to pd. Makes it more flexible and robust. It also allows me to easily test (and modify) my http access script outside of pd.
Thanks for all your input! m@rc
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list