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
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Executing GET (or any other HTTP verb) on a URL
4 posts
• Page 1 of 1
Executing GET (or any other HTTP verb) on a URL
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!
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
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!)
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!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
Re: Executing GET (or any other HTTP verb) on a URL
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!
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
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.
-
wlangfor@uoguelph.ca - Posts: 912
- Joined: Tue Apr 03, 2018 5:50 pm
- Location: North Bay, Ontario, Canada
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 19 guests