Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

Executing GET (or any other HTTP verb) on a URL

For general discussion related FlowStone

Executing GET (or any other HTTP verb) on a URL

Postby yuigoto » Fri Jul 19, 2019 4:21 pm

Hi! Newbie here, I'm still on the Flowstone trial to see if it fits the type of work I want to do here.

Been eyeing the tool since it was called SynthMaker and now I'm having the opportunity to properly try it. :)

So, I'm trying to build a small trigger for a webserver I manage here and I stumbled upon a small problem: searching through the application, I found that we do have a Http POST object, and it works pretty well here, but my web server uses different verbs for requests, and I need to do some GET requests sometimes, is it possible?

If no module is present for this type of request, then how can I make it work? Should I use Ruby for that? :?:

Thanks! ;)
yuigoto
 
Posts: 2
Joined: Fri Jul 19, 2019 11:12 am
Location: São Paulo, Brazil

Re: Executing GET (or any other HTTP verb) on a URL

Postby trogluddite » Sun Jul 21, 2019 12:25 pm

Hi, yuigoto! I don't have an easy answer to your problem, I'm afraid, but I though I'd at least welcome you to the forum.

I think you're right that Ruby would be the way to go, but unfortunately, I don't think that'll be easy. The version of Ruby in FlowStone doesn't include the "standard libraries" that stand-alone Ruby normally ships with, which would include the Net::HTTP class which I think would be ideal for your needs.

In principle, it is possible to extend FlowStone's Ruby with additional libraries of classes and modules, but there's a caveat - if they are compiled from C++ code, they must have been compiled with Microsoft's Visual Studio, which unfortunately is rare for downloadable Ruby extensions. Someone did post here a version of the Ruby standard libraries compiled in this way, but sadly, my searching has only turned up dead links (if anyone else knows where we can find this, please let us know!)
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1282
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Executing GET (or any other HTTP verb) on a URL

Postby yuigoto » Mon Jul 22, 2019 9:53 am

Thanks, trogluddite! I kinda knew it would be like this in the end.

I'll see what I can do here, but going this way is kinda the opposite of what I wanted to do, since I kinda wanted to do it the simple way hahaah

I might have to work on an endpoint using POST until a better possibility appears. :)

Thanks again!
yuigoto
 
Posts: 2
Joined: Fri Jul 19, 2019 11:12 am
Location: São Paulo, Brazil

Re: Executing GET (or any other HTTP verb) on a URL

Postby wlangfor@uoguelph.ca » Thu Aug 22, 2019 11:47 pm

yuigoto wrote:Thanks, trogluddite! I kinda knew it would be like this in the end.

I'll see what I can do here, but going this way is kinda the opposite of what I wanted to do, since I kinda wanted to do it the simple way hahaah

I might have to work on an endpoint using POST until a better possibility appears. :)

Thanks again!


there is also some primitives. A lot is possible if you retrofit.
Download VST: LA Bands 15 Band EQ
My Website http://www.leattol.com
User avatar
wlangfor@uoguelph.ca
 
Posts: 584
Joined: Tue Apr 03, 2018 5:50 pm
Location: Penetanguishene, Ontario, Canada


Return to General

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 14 guests